Posted on 2007-12-27 20:35:37-08 by andyd
problem in statistics::distributions _subfprob?
Im not sure this is a bug or what. While doing a T test (statistics::TTest::perform_t_test), the function statistics::distributions ::_subfprob is called with $n=2255, $m=2297, and $x=0.9198. On lines 120-122 is the following loop
for (my $i = $n &ndash 2; $i >= 3; $i &ndash= 2) {
$a = 1 + ($m + $i &ndash 2) / $i * $z * $a;
}

eventually results in $a being 1.INF which then results in the like for the functions return value ($p) which propagates back up (though _subf2, _subf, fdistr,statistics:TTest::perform_t_test) with an error (I think the error is actually raised in _subf2).
Frankly, I dont know what this function is doing so, without a research project, all I can do at this point is ask for workaround/advice. Thanks
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.