Has your question been answered yet? x=c(1,2,4,3,6,8) y=c(3,2,5,7,4,6)
cor.test(x,y,method="spearman") ####And that's how you "extract" the p-value: cor.test(x,y,method="s")$p.value Cheers, Daniel -------------------------- Abstrakthelfer helfen wenig -------------------------- -----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Anne-Katrin Link Gesendet: Thursday, February 28, 2008 10:17 AM An: r-help@r-project.org Betreff: [R] p-value in Spearman rank order Dear R-helpers, I would like to do a Spearman rank order test, and used the cor() function with the method "spearman". It gives me a number (correlation coefficient?) , but how can I get the p-value? Thank you for the help in advance! Regards, Anne-Katrin -- [[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.