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 32.292.381 Times

Statistics::TTest 1.1.0

  Date Added: April 23, 2010  |  Visits: 620


Report Broken Link
Printer Friendly Version

Product Homepage
Download (72 downloads)

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 Statistics::PointEstimation; use Statistics::TTest; my @r1=(); my @r2=(); my $rand; for($i=1;$i<=32;$i++) #generate a uniformly distributed sample with mean=5 { $rand=rand(10); push @r1,$rand; $rand=rand(10)-2; push @r2,$rand; } my $ttest = new Statistics::TTest; $ttest->set_significance(90); $ttest->load_data(@r1,@r2); $ttest->output_t_test(); $ttest->set_significance(99); $ttest->print_t_test(); #list out t-test related data #the following thes same as calling output_t_test() (you can check if $ttest->{valid}==1 to check if the data is valid.) my $s1=$ttest->{s1}; #sample 1 a Statistics::PointEstimation object my $s2=$ttest->{s2}; #sample 2 a Statistics::PointEstimation object print "*****************************************************nn"; $s1->output_confidence_interval(1); print "*****************************************************nn"; $s2->output_confidence_interval(2); print "*****************************************************nn"; print "Comparison of these 2 independent samples.n"; print "t F-statistic=",$ttest->f_statistic()," , cutoff F-statistic=",$ttest->f_cutoff(), " with alpha level=",$ttest->alpha*2," and df =(",$ttest->df1,",",$ttest->df2,")n"; if($ttest->{equal_variance}) { print "tequal variance assumption is accepted(not rejected) since F-statistic < cutoff F-statisticn";} else { print "tequal variance assumption is rejected since F-statistic > cutoff F-statisticn";} print "tdegree of freedom=",$ttest->df," , t-statistic=T=",$ttest->t_statistic," Prob >|T|=",$ttest->{t_prob},"n"; print "tthe null hypothesis (the 2 samples have the same mean) is ",$ttest->null_hypothesis(), " since the alpha level is ",$ttest->alpha()*2,"n"; print "tdifference of the mean=",$ttest->mean_difference(),", standard error=",$ttest->standard_error(),"n"; print "t the estimate of the difference of the mean is ", $ttest->mean_difference()," +/- ",$ttest->delta(),"nt", " or (",$ttest->lower_clm()," to ",$ttest->upper_clm," ) with ",$ttest->significance," % of confidencen"; #example for Statistics::TTest::Sufficient use Statistics::PointEstimation; use Statistics::TTest; my %sample1=( count =>30, mean =>3.98, variance =>2.63 ); my %sample2=( count=>30, mean=>3.67, variance=>1.12 ); my $ttest = new Statistics::TTest::Sufficient; $ttest->set_significance(90); $ttest->load_data(%sample1,%sample2); $ttest->output_t_test(); #$ttest->s1->print_confidence_interval(); $ttest->set_significance(99); $ttest->output_t_test(); #$ttest->s1->print_confidence_interval(); Statistics::TTest This is the Statistical T-Test module to compare 2 independent samples. It takes 2 array of point measures, compute the confidence intervals using the PointEstimation module (which is also included in this package) and use the T-statistic to test the null hypothesis. If the null hypothesis is rejected, the difference will be given as the lower_clm and upper_clm of the TTest object. Statistics::TTest::Sufficient This module is a subclass of Statistics::TTest. Instead of taking the real data points as the input, it will compute the confidence intervals based on the sufficient statistics and the sample size inputted. To use this module, you need to pass the sample size, the sample mean , and the sample variance into the load_data() function. The output will be exactly the same as the Statistics::TTest Module..

Requirements: No special requirements
Platforms: Linux
Keyword: Libraries Module Output Perl Module Pointestimation Print Programming Statisticsttest T-test Ttest
Users rating: 0/10

License: Freeware Size: 6.14 KB
Libraries  -  Alien Perl module 0.91
Alien Perl module package contains external libraries wrapped up for your viewing pleasure! SYNOPSIS perldoc Alien; Alien is a package that exists just to hold together an idea, the idea of Alien:: packages, so there is no code here, just...
10.24 KB  
Libraries  -  Bio::Phylo::IO 0.17 RC6
Bio::Phylo::IO Perl module contains input and output of phylogenetic data. SYNOPSIS use Bio::Phylo::IO; # parsing a tree from a newick string my $tree_string = (((A,B),C),D);; my $tree = Bio::Phylo::IO->parse( -string => $tree_string, #...
143.36 KB  
Libraries  -  IO::InSitu 0.0.2
IO::InSitu is a Perl module to avoid clobbering files opened for both input and output. SYNOPSIS use IO::InSitu; my ($in, $out) = open_rw($infile_name, $outfile_name); for my $line ( ) { $line =~ s/foo/bar/g; print {$out} $line; }...
6.14 KB  
Libraries  -  OpenGeoDB Perl module 0.4
OpenGeDB Perl module is a module to access the OpenGeoDB database and calculate all ZIP codes in a certain radius..
3.07 KB  
Libraries  -  Module::Signature 0.55
Module::Signature is a Perl module signature file manipulation. SYNOPSIS As a shell command: % cpansign # verify an existing SIGNATURE, or # make a new one if none exists % cpansign sign # make signature; overwrites existing one %...
68.61 KB  
Libraries  -  Devel::Messenger 0.01
Devel::Messenger is a Perl module who let your code talk to you. SYNOPSIS use Devel::Messenger qw{note}; # set up localized subroutine local *note = Devel::Messenger::note { output => print, level => 2, pkgname => 1, linenumber => 1,...
7.17 KB  
Libraries  -  Myco::Devel 1.22
Myco::Devel is a Perl module for myco Developers Guide. This guide is intended for developers wanting to build applications with myco. You should have a decent grasp of the Perl programming language, or else a solid grasp of another programming...
102.4 KB  
Libraries  -  SVK::Command::Help 1.08
SVK::Command::Help is a Perl module to show help. OPTIONS Optionally svk helps can pipe through a pager, for it is easier to read if the output is too long. For using this feature, please set environment variable SVKPAGER to some pager...
266.24 KB  
Libraries  -  Catalyst::Plugin::Dumper 0.000002
Catalyst::Plugin::Dumper is a Perl module with Data::Dumper plugin for Catalyst. SYNOPSIS use Catalyst qw/-Debug Dumper/; $c->log->dumper($myvar); $c->log->dumper($myvar, mylabel); This plugin injects a dumper() method into the...
4.1 KB  
Libraries  -  Convert::CEGH::Gematria 0.02
Convert::CEGH::Gematria is a Perl module for Coptic/Ethiopic/Greek/Hebrew Gematria. SYNOPSIS use utf8; use Convert::CEGH::Gematria enumerate; print "Hebrew: ž“ => ", enumerate ( "ž“" ), "n";...
6.14 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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 3.15.3
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...
3.88 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