[R] Where to find the p-value of a correlation test

Ista Zahn istazahn at gmail.com
Wed Apr 25 15:38:32 CEST 2012


Hi,

Look at the "See also" section of ?cor

Best,
Ista

On Wed, Apr 25, 2012 at 9:30 AM, Aaditya Nanduri
<aaditya.nanduri at gmail.com> wrote:
> Hey everyone,
>
>
> I hope this finds you in good cheer.
>
> I just have a quick question: What is the function that outputs the p-value
> for correlation?
>
> cor(x,y) only provides the R value. I would like the p-value associated
> with it.
>
> Thank you all for your help!
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.



More information about the R-help mailing list