Skip to content

Correlation Matrix

6 messages · Cren, mahdi, Joshua Wiley +1 more

#
Hi,

unless you're dealing with heteroskedastic datas, the command *cor(x)* will
be enough, where *x* is your data matrix; in this function you can easily
select the method which has to be used: Pearson's, Kendall's or Spearman's
correlation.

--
View this message in context: http://r.789695.n4.nabble.com/Correlation-Matrix-tp4630389p4630392.html
Sent from the R help mailing list archive at Nabble.com.
#
Hi Mahdi,

Look at the documentation for cor(), by typing ?cor or help("cor").
Pearson is the default and it is trivial to select the others.  I
suggest you try searching google or reading R's documentation before
posting to the list.  You may not understand it all, but it shows you
tried to work on your own and let's you ask more specific questions.
For example: I am using function foo(), and read the documentation,
but was confused by this paragraph "some paragraph from docs for foo".
 Then we can come along and so oh, what that means is _____.

Cheers,

Josh
On Thu, May 17, 2012 at 7:22 AM, mahdi <mahdi43 at gmail.com> wrote:

  
    
#
Josh:

A very nice, clear, polite, concise, and reasoned alternative to "RTFM" !

Probably should be templated somehow, given the volume of queries of
this sort that this list receives. (The posting guide is too involved
to serve in its stead.)

Cheers,
Bert
On Thu, May 17, 2012 at 9:31 AM, Joshua Wiley <jwiley.psych at gmail.com> wrote: