On 12-04-25 9:30 AM, Aaditya Nanduri 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.
cor(x,y) calculates the correlation, it doesn't perform a test, so there
is no p-value.
cor.test() performs a test.
Duncan Murdoch
______________________________________________
R-help@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.