> 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@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.

Reply via email to