Tell me more ×
Cross Validated is a question and answer site for statisticians, data analysts, data miners and data visualization experts. It's 100% free, no registration required.

I'm modeling (using GLM) one binary explanatory variable against a binary response variable.

The output looks ok to me, but I'm a biologist with a basic knowledge of stats, I just wanted to ask if there's any rule/caveat/problem for modeling a binary versus a binary?

share|improve this question

1 Answer

up vote 5 down vote accepted

In the general linear model the explanatory variables can be binary, categorical, discrete or continuous but the response variable is generally continuous. For a generalized linear model the explanatory variables can still be binary, categorical, discrete or continuous but applying the logit as the link function allows for the response variable to be binary too. So that is a longwinded way of saying in a generalized linear model you can have a binary explanatory variable with a binary response.

share|improve this answer
5  
+1, in addition to @MichaelChernick's answer, you may find it simpler to use a $\chi^2$ test of independence for a 2x2 contingency table, which is, in essence, a special case of the GLiM where both variables are binary. – gung Aug 8 '12 at 17:15
@Gung Nice point. – Michael Chernick Aug 8 '12 at 17:29
Interesting, @gung, that you would recommend a chi-square test per se, as opposed to assessing odds ratios or a phi correlation. The former yields a statement about probability; that latter two, statements about effect size, which are normally more interesting to both of us, I think. – rolando2 Aug 8 '12 at 22:30
Hi, @rolando2, I think you're right, of course. I only mention that it's simpler, which can be a virtue in some circumstances. – gung Aug 8 '12 at 22:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.