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 <mahd...@gmail.com> wrote: > Thanks a lot. Suppose I want to use Pearson's method, then what I have to do? > > -- > View this message in context: > http://r.789695.n4.nabble.com/Correlation-Matrix-tp4630389p4630396.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. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, Statistical Consulting Group University of California, Los Angeles https://joshuawiley.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.