Win has asked for the wisdom of the Perl Monks concerning the following question:
The following bit of Perl:
Gives me:use strict; use DBI; use DBD::ODBC; use Statistics::Distributions; ### A load of code here ### And then: while ( my @columns = $sthZL->fetchrow() ) { print " Row " . $count++ . ":" . join("\t",@columns) . "\n" +; my $degrees_of_freedom_in_numerator = 2*($columns[4]-$columns[ +6]+1); my $degrees_of_freedom_in_denominator = 2*($columns[6]); my $fprob=Statistics::Distributions::fprob($degrees_of_freedom +_in_numerator, $degrees_of_freedom_in_denominator, 0.025); my $result = ($columns[3]+(sqrt(($columns[6]/1000)/$columns[4] +)*($columns[4]/$columns[4]+($columns[5]-$columns[4]+1)*$fprob*$column +s[4]-$columns[3]))*100000); print "\n$result\n";
Can anyone please explain 'Invalid n' error message?<code> Row 1:All All 459 7236 286820 3000 .0103270000000 +00000000000000 Invalid n: 573641.979346
janitored by ybiC: Retitle from "Invalid n - error message" for better searching
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Statistics::Distributions, error "Invalid n:"
by idsfa (Vicar) on Feb 04, 2004 at 16:33 UTC | |
|
Re: Statistics::Distributions, error "Invalid n:"
by Old_Gray_Bear (Bishop) on Feb 04, 2004 at 16:29 UTC |