Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.

# st: RE: Can Spearman's rho be used to measure of the degree of association between two binary variables ?

 From "Visintainer, Paul" To "'statalist@hsphsun2.harvard.edu'" Subject st: RE: Can Spearman's rho be used to measure of the degree of association between two binary variables ? Date Mon, 21 May 2012 12:23:00 -0400

```Yes, in fact many of the contingency coefficients will give equivalent results for 2x2 tables:

.sysuse auto
.gen pricecat=cond(price>=5000,1,0)
.tab foreign pricecat, all
.corr foreign pricecat
.spearman foreign pricecat

Cramer's V, Spearman rho, and Pearson's correlation all give the same value.  Another is called the "phi" coefficient, which can be computed as the sqrt(chisquare/N)

.di sqrt(2.3287/74)

-Paul

_________________________________________________
Paul F. Visintainer, PhD
Baystate Medical Center
Springfield, MA 01199

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Marcos Vinicius
Sent: Sunday, May 20, 2012 4:32 PM
To: statalist@hsphsun2.harvard.edu
Subject: st: Can Spearman's rho be used to measure of the degree of association between two binary variables ?

Hello,
Can Spearman's rho be used to measure of the degree of association between two binary variables ?
I was wondering if Spearman's rho could be adequate  because I have used the phi coefficient to quantify association among several  binary variables and the results are identifical compared with Spearman's rho coefficient .
Best regards,
Marcos Vinicius

____________________________________________________________
Works with AIM(r), MSN(r) Messenger, Yahoo!(r) Messenger, ICQ(r), Google Talk(tm) and most webmails

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

----------------------------------------------------------------------
Please view our annual report at http://baystatehealth.org/annualreport

CONFIDENTIALITY NOTICE: This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents is prohibited. If you have received this communication in error, please reply to the sender immediately or by telephone at 413-794-0000 and destroy all copies of this communication and any attachments. For further information regarding Baystate Health's privacy policy, please visit our Internet site at http://baystatehealth.org.

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/
```