Subject: | Re: error in using Statistics::DependantTTest |
Date: | Thu, 27 Mar 2014 14:26:17 -0400 |
To: | "mlee [...] startechgroup.co.uk" <mlee [...] startechgroup.co.uk>, "bug-Statistics-DependantTTest [...] rt.cpan.org" <bug-Statistics-DependantTTest [...] rt.cpan.org> |
From: | Yueming Ding <yueming.ding [...] regeneron.com> |
Hi,
I have installed your Statistics::DependantTTest on my computer. But when I ran the following test.pl:
#!/usr/bin/perl -w
use Statistics::DependantTTest;
use Statistics::Distributions;
my @before_values=('5','5','6','7','7');
my @after_values=('5','6','6.5','6.5','7.5');
my $t_test = new DependantTTest;
$t_test->load_data('before',@before_values);
$t_test->load_data('after',@after_values);
my ($t_value,$deg_freedom) = $t_test->perform_t_test('before','after');
my ($p_value) = Statistics::Distributions::tprob ($deg_freedom,$t_value);
I always got the following error message:
"Can't locate object method "new" via package "DependantTTest" (perhaps you forgot to load "DependantTTest"?) at ./test_module.pl line 6."
My Statistics::DependantTTest was installed at /Library/Perl/5.12/Statistics/ on my Mac. If I ran the following command line, I will get "ok":
perl -e 'use Statistics::DependantTTest; print "ok\n"'
I tried to installed this module to different system, I still got the same error message. It would be greatly appreciated if you could help me out. Thanks!
Yueming