>From ?cor()

## Two simple vectors
cor(1:10,2:11)# == 1
## Correlation Matrix of Multivariate sample:
(Cl <- cor(longley))
## Graphical Correlation Matrix:
symnum(Cl)
# highly correlated ## Spearman's rho and Kendall's tau
symnum(clS <- cor(longley, method = "spearman"))
symnum(clK <- cor(longley, method = "kendall"))
## How much do they differ?
i <- lower.tri(Cl)
cor(cbind(P = Cl[i], S = clS[i], K = clK[i]))

I got the idea from the above sample code.

cor(cbind(P = Cl[i], S = clS[i], K = clK[i]))

This result is interpreted as "How correlated are the three correlation
matrices," correct? They values from this are >.9 indicating high
correlation.

But if instead of comparing matrices of methods of correlation, I was
comparing corr. matrices of different treatments, then the results would
allow me to discover: "How correlated are the treatments," correct?

I hope this made my question clearer.

Thanks,
Michael



On Thu, Oct 9, 2008 at 8:35 AM, John Kane <[EMAIL PROTECTED]> wrote:

> Please provide a small working example. It is difficult to see what you are
> doing from the description below.
>
>
> --- On Thu, 10/9/08, Michael Just <[EMAIL PROTECTED]> wrote:
>
> > From: Michael Just <[EMAIL PROTECTED]>
> > Subject: [R] Interpretation in cor()
> > To: "r-help" <r-help@r-project.org>
> > Received: Thursday, October 9, 2008, 5:28 AM
> > Hello,
> >
> > I am performing cor() of some of my data. For example,
> > I'll do 3 corr()
> > (many variables) operations, one for each of the three
> > treatments.
> >
> > I then do the following:
> >
> > i <-lower.tri(treatment1.cor)
> > cor(cbind(one = treatment1.corr[i], two =
> > treatment2.corr[i], three =
> > treatment3.corr[i]))
> >
> > Does this operation above tell me how correlated each of
> > the three
> > treatments is? Because this how I am interpreting it.
> >
> > Thanks,
> > Michael Just
> >
> >       [[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.
>
>
>      __________________________________________________________________
> Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your
> favourite sites. Download it now at
> http://ca.toolbar.yahoo.com.
>

        [[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