Hi [EMAIL PROTECTED] napsal dne 04.12.2007 02:39:39:
> > I recently picked up R for econometrics modeling, and I am confronted with > a > > problem. I use cor.test() for spearman test, and want to get the "rho" and > > "P-value" in the summary. Would you please tell me how to get them? Thank > you very much! > > > > > > > > Here is the cor.test() summary: > > > > Spearman's rank correlation rho > > > > > > > > data: a[, 3] and a[, 2] > > > > S = 22, p-value = 0.001174 > > > > alternative hypothesis: true rho is not equal to 0 > > > > sample estimates: > > > > rho > > > > 0.8666667 See how result of cor.test() is organised by str(your.result) and pick up the value you want from list. See ...$estimate Regards Petr > > > > > > > > Best Regards, > > > > Hayes > > [[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. ______________________________________________ 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.