?cor.test
cor.test(x, y, method = "spearman")$p.value

HTH,
Jorge


On Tue, Aug 9, 2011 at 8:44 AM, ScottM <> wrote:

> Hello all,
>
> I've run a Spearman's Rank test to discern relationships between landscape
> characteristics and a specific aspect of river behaviour.
>
> I've executed a correlation matrix between the one dependent variable and
> all of the predictors, which gives me a nice output of Spearman's Rho
> values.
>
> However, I also need to somehow find the "p" value, to assess the strength
> of relationship.
>
> Conducting a simple correlation between 2 variables using the:
>
> cor(var1, var2, method="spearman")
>
> command gives me an output with both the Rho and P value, but the default
> output of the matrix is simply the Rho value.  I've tried using
> summary(result), but it just produces the percentile/max/min values.
>
> Any help appreciated.
>
> Cheers,
>
> S.
>
> --
> View this message in context:
> http://r.789695.n4.nabble.com/Correlation-Matrix-p-value-tp3729838p3729838.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.
>

	[[alternative HTML version deleted]]

