[R] R-help

From: утвзм╔ <zhaozongting_at_gmail.com>
Date: Tue, 4 Dec 2007 09:39:39 +0800


> 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
>
>
>
> Best Regards,
>
> Hayes

        [[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. Received on Tue 04 Dec 2007 - 14:25:55 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 04 Dec 2007 - 15:30:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.