Thursday, May 5, 2011

How do I calculate a p-value if I have the t-statistic and d.f. (in Perl)?

Hi everyone,

I have written a Perl script that performs many one-sample t-tests. I get thousands of t-statistics with their degrees of freedom (df). I need to upgrade the script to also return their p-values (there are too many to look them up manually in a table). Is there some kind of formula I can use for this with the t-statistic and d.f as input? I hope someone can help me with this, many thanks in advance!

A.A.

From stackoverflow

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.