Awesome! cor.text() is what I was looking for! Thank you Duncan! On Wed, Apr 25, 2012 at 9:43 AM, Duncan Murdoch <murdoch.dun...@gmail.com>wrote:
> 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 > -- *Aaditya Nanduri | Statistical Analyst*** Business Analytics Aflac Worldwide Headquarters 1932 Wynnton Road, Columbus, Georgia 31999 Tel: 706.596.2986 | Cell: 908.380.4560 [[alternative HTML version deleted]] ______________________________________________ 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.