Question: Binary Correlation In R
0
gravatar for arvish666
5.5 years ago by
arvish6660
arvish6660 wrote:

How would it be possible to correlate ( preferably Pearson correlation) of two binary matrices (with values 0 and 1) using R ??

R correlation • 8.5k views
ADD COMMENTlink modified 5.5 years ago by Michael Dondrup45k • written 5.5 years ago by arvish6660
1

Btw, I assume you have a biological application in mind? If so you should describe it so we also can see if your approach is sane. If not, in principal I would have to close the question, but I am just assuming you have.

ADD REPLYlink written 5.5 years ago by Michael Dondrup45k
1
gravatar for Michael Dondrup
5.5 years ago by
Bergen, Norway
Michael Dondrup45k wrote:

Yes, it works.

In fact, a Pearson correlation coefficient estimated for two binary variables will return the phi coefficient.

http://en.wikipedia.org/wiki/Phi_coefficient

ADD COMMENTlink written 5.5 years ago by Michael Dondrup45k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1661 users visited in the last hour