[R] Critical values of r

C.H. chainsawtiney at gmail.com
Mon Jan 14 07:41:17 CET 2008

Not particularly R related, but r related.

For pearson correlation, the test statistics is based on t distribution.

ts = r * sqrt ((n-2)/(1-r^2))
with n-2 degree of freedom.

I think you can solve this question, maybe a little bit of googling.

On Jan 14, 2008 1:39 PM, Sanglamt <sanglant at mchsi.com> wrote:
> I've spent several hours trying to track the answer down myself and failed
> miserably so a simple question for everyone that will no doubt have a
> painfully obvious answer.
> What's the command to calculate the critical value of r using a two tailed
> test with a given alpha and degrees of freedom? I.e., alpha=0.05, df=18,
> two-tailed test, with the result being 0.4438
> --
> View this message in context: http://www.nabble.com/Critical-values-of-r-tp14795700p14795700.html
> Sent from the R help mailing list archive at Nabble.com.
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

CH Chan
Research Assistant - KWH

More information about the R-help mailing list