Re: [R] How can I use the rho value in the cor.test() summary?

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Tue, 04 Dec 2007 09:33:27 +0100

Daniel Malter wrote:
> x=c(1,2,3,4,5,6,7,8,9)
> y=c(3,5,4,6,7,8,8,7,10)
>
> z=cor.test(x,y)
>
> othervariable=z$p.value
>
z$statistic, more likely.

> Cheers,
> Daniel
>
> -------------------------
> cuncta stricte discussurus
> -------------------------
>
> -----Ursprüngliche Nachricht-----
> Von: r-help-bounces_at_r-project.org [mailto:r-help-bounces_at_r-project.org] Im
> Auftrag von Hayes
> Gesendet: Tuesday, December 04, 2007 2:11 AM
> An: r-help_at_r-project.org
> Betreff: [R] How can I use the rho value in the cor.test() summary?
>
>
> I want to give the "rho" value below to another variable.How ?
>
>
>> 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
>>
> --
> View this message in context:
> http://www.nabble.com/How-can-I-use-the-rho-value-in-the-cor.test%28%29-summ
> ary--tf4941501.html#a14145737
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.
>
> ______________________________________________
> 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.
>

-- 
   O__  ---- Peter Dalgaard             Řster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard_at_biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
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 - 08:37:54 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 - 19:30:53 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.