[R] Odp: R-help
petr.pikal at precheza.cz
Tue Dec 4 15:48:37 CET 2007
r-help-bounces at r-project.org napsal dne 04.12.2007 02:39:39:
> > I recently picked up R for econometrics modeling, and I am confronted
> > problem. I use cor.test() for spearman test, and want to get the "rho"
> > "P-value" in the summary. Would you please tell me how to get them?
> 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
and pick up the value you want from list. See ...$estimate
> > Best Regards,
> > Hayes
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help