3
$\begingroup$

Dummy (or binary) variables ($X_2$) can be used in linear regression models to help explaining a possible group effect that a continuous predictor variable ($X_1$) might present in explaining the response variable ($Y$).

Now, I am wondering if it makes sense to have only dummy variables as predictors in a linear regression model with a continuous response variable. Does it?

Example:

% of population with instruction = influenced by politics A + influenced by politics B.

Both politics A and B can assume values 1 or 0.

$\endgroup$
1
  • 3
    $\begingroup$ A regression with one response and a one binary predictor is in essence equivalent to Student's t test comparing two means. This is often regarded as too puzzling to be mentioned in introductory texts and too obvious to be underlined in more advanced texts. (In practice, not everything in your favourite software to do either procedure may match exactly.) $\endgroup$
    – Nick Cox
    Commented Oct 25, 2013 at 13:54

1 Answer 1

6
$\begingroup$

Because linear regression does not assume any distribution of predictors, as long as

  1. They are not perfectly collinear, and
  2. None of them is a constant, it should be fine.

Your example is just like using regression as an ANOVA sans interaction (aka, not a full-factorial design.) If additional effect due to co-influence by A & B is of your interest, compute an interaction term (by multiplying your two dummy variables) and include it as a predictor as well.

$\endgroup$
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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