Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 30.072.217 Times

Statistics::ChisqIndep 0.1

  Date Added: November 16, 2010  |  Visits: 715

Statistics::ChisqIndep

Report Broken Link
Printer Friendly Version


Product Homepage
Download (89 downloads)

Statistics::ChisqIndep is a Perl module to perform chi-square test of independence (a.k.a. contingency tables). Synopsis #example for Statistics::ChisqIndep use strict; use Statistics::ChisqIndep; use POSIX; # input data in the form of the array of array references my @obs = ([15, 68, 83], [23,47,65]); my $chi = new Statistics::ChisqIndep; $chi->load_data(@obs); # print the summary data along with the contingency table $chi->print_summary(); #print the contingency table only $chi->print_contingency_table(); #the following output is the same as calling the function of print_summary #all of the detailed info such as the expected values, degree of freedoms #and totals are accessible as object globals #check if the load_data() call is successful if($chi->{valid}) { print "Rows: ", $chi->{rows}, "n"; print "Columns: ", $chi->{cols}, "n"; print "Degree of Freedom: ", $chi->{df}, "n"; print "Total Count: ", $chi->{total}, "n"; print "Chi-square Statistic: ", $chi->{chisq_statistic}, "n"; print "p-value: ", $chi->{p_value}, "n"; print "Warning: some of the cell counts might be too low.n" if ($chi->{warning}); #output the contingency table my $rows = $chi->{rows}; # # rows my $cols = $chi->{cols}; # # columns my $obs = $chi->{obs}; # observed values my $exp = $chi->{expected}; # expected values my $rtotals = $chi->{rtotals}; # row totals my $ctotals = $chi->{ctotals}; #column totals my $total = $chi->{total}; # total counts for (my $j = 0; $j < $cols; $j++) { print "t",$j + 1; } print "trtotaln"; for (my $i = 0; $i < $rows; $i ++) { print $i + 1, "t"; for(my $j = 0 ; $j < $cols; $j ++) { #observed values can be accessed #in the following way print $obs->[$i]->[$j], "t"; } #row totals can be accessed # in the following way print $rtotals->[$i], "n"; print "t"; for(my $j = 0 ; $j < $cols; $j ++) { #expected values can be accessed #in the following way printf "(%.2f)t", $exp->[$i]->[$j]; } print "n"; } print "ctotalt"; for (my $j = 0; $j < $cols; $j++) { #column totals can be accessed in the following way print $ctotals->[$j], "t"; } #output total counts print $total, "n"; } This is the module to perform the Pearsons Chi-squared test on contingency tables of 2 dimensions. The users input the observed values in the table form and the module will compute the expected values for each cell based on the independence hypothesis. The module will then compute the chi-square statistic and the corresponding p-value based on the observed and the expected values to test if the 2 dimensions are truly independent..

Requirements: No special requirements
Platforms: Linux
Keyword: Chi-square Test Chisqindep Contingency Contingency Tables Expected Values Libraries Perl Module Print Programming Statisticschisqindep Total Values
Users rating: 0/10

License: Freeware Size: 3.07 KB
STATISTICS::CHISQINDEP RELATED
Libraries  -  Statistics::TTest 1.1.0
Statistics::TTest is a Perl module to perform T-test on 2 independent samples. Statistics::TTest::Sufficient - Perl module to perfrom T-Test on 2 indepdent samples using sufficient statistics SYNOPSIS #example for Statistics::TTest use...
6.14 KB  
Libraries  -  Test::Reporter::Date::Format 1.27
Test::Reporter::Date::Format Perl module contains date formating subroutines. SYNOPSIS use Test::Reporter::Date::Format; @lt = localtime(time); print time2str($template, time); print strftime($template, @lt); print time2str($template,...
23.55 KB  
Libraries  -  Statistics::Contingency 0.06
Statistics::Contingency is a Perl module to calculate precision, recall, F1, accuracy, etc. SYNOPSIS use Statistics::Contingency; my $s = new Statistics::Contingency(categories => @all_categories); while (...something...) { ......
7.17 KB  
Libraries  -  Text::NSP::Measures::2D::CHI::tscore 1.03
Text::NSP::Measures::2D::CHI::tscore is a Perl module that implements T-score measure of association for bigrams. SYNOPSIS Basic Usage use Text::NSP::Measures::2D::CHI::tscore; my $npp = 60; my $n1p = 20; my $np1 = 20; my $n11 = 10;...
952.32 KB  
Scientific and Engineering  -  GlobalTrends 12-13-2008 1.0
It will test for trends when seasonality is present and over multiple observation stations, all of which are Chi-square statistics.These tests will allow for ties, missing data, and multiple observations per time index, since it uses the enhanced...
 
Development Tools  -  Generalized Nonlinear Non-analytic Chi-Square Fitting 1.0
fitChiSquare is a generalized chi-square fitting routine for any model function when data measurement errors are known; it returns the model parameters and their uncertainties at the delta chi-square = 1 boundary (68% confidence interval). It also...
40.96 KB  
Libraries  -  Test::Version 0.02
Test::Version is a Perl module that has the role to check for VERSION information in modules. SYNOPSIS use Test::Version; plan tests => $num_tests; version_ok( $file ); FUNCTIONS version_ok( FILENAME, [EXPECTED, [NAME] ] ) version_ok...
5.12 KB  
Libraries  -  Test::Differences 0.47
Test::Differences Perl module contains test strings and data structures and show differences if not ok. SYNOPSIS use Test; ## Or use Test::More use Test::Differences; eq_or_diff $got, "anbncn", "testing strings"; eq_or_diff @got, [qw( a b...
8.19 KB  
Libraries  -  Test::Deep 0.096
Test::Deep is a Perl module for extremely flexible deep comparison. SYNOPSIS use Test::More tests => $Num_Tests; use Test::Deep; cmp_deeply( $actual_horrible_nested_data_structure, $expected_horrible_nested_data_structure, "got the right...
30.72 KB  
Libraries  -  Test::Tester::CaptureRunner 0.103
Test::Tester::CaptureRunner is a Perl module that provides help testing test modules built with Test::Builder. SYNOPSIS use Test::Tester tests => 6; use Test::MyStyle; check_test( sub { is_mystyle_eq("this", "that", "not eq"); }, { ok...
14.34 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB