5
$\begingroup$

If I'm doing a regression analysis and in my data I want to use quite a few categorical variables (for example region, educational level and political party they'd vote for), is a dummy variable approach the best solution?

A simple problem, brought up by Wooldridge (regarding wages and a dummy for married and a dummy for gender) is that there should be some interaction as the "marriage premium" isn't constant for males and females.

So I was thinking that I'd have to interact my dummy variables as well, which would create a lot of cross dummy terms (losing degrees of freedom, etc). If I had 3 categories and each had 6 options there'd be 6*6*6 interaction dummies?

$\endgroup$
1
  • 1
    $\begingroup$ There's no inherent problem with having lots of dummies - some programs have ways to handle this, for example in proc glm in SAS, there's the absorb option - which means here's a bunch of variables, don't show me their parameters. I've run models with hundreds of dummies. $\endgroup$ Commented May 3, 2014 at 0:03

2 Answers 2

2
$\begingroup$

This sounds like it might be an appropriate situation for multilevel modeling. How many different regions do you have? If there are many (say, dozens or more) you might wish to take such an approach (c.f. Duncan et al., 1998)

On the other hand, educational attainment can be incorporated as a numerical predictor quite successfully, although I always explore its functional relationship with the outcome by (1) using a nonparametric smoothing regression (Beck, 1997; Hastie and Tibshirani, 1987) in order to inform (2) specify a nonlinear (in all likelihood) functional form, usually with nonlinear least squares regression (Davidson, 2004).

If there are relatively few political parties, you might wish to retain the indicator variables for these categories.

References

Beck, N. and Jackman, S. (1997). Getting the mean right is a good thing: gen- eralized additive models. Working paper, Society for Political Methodology.

Davidson, R. and MacKinnon, J. G. (2004). Econometric Theory and Methods, chapter 6: Nonlinear Regression. New York: Oxford University Press.

Duncan, C., Jones, K., and Moon, G. (1998). Context, composition and heterogeneity: Using multilevel models in health research. Social Science & Medicine, 46(1):97–117.

Hastie, T. and Tibshirani, R. (1987). Generalized Additive Models: Some Applications. Journal of the American Statistical Association, 82(398):371–386.

$\endgroup$
2
  • $\begingroup$ I'll look into this, thanks, but am wondering if this approach is unnecessarily technical? $\endgroup$
    – Brian
    Commented May 2, 2014 at 21:03
  • 1
    $\begingroup$ You are correct that I am pointing at a modeling approach requiring more technical effort. But, well... not to be too much of a brat, but one might respond by asking if unjustified assumptions of linear relationships and unjustified hemorrhage of statistical power are necessary. But I will instead say you're not wrong to raise this critique: there's a trade off, and "how little can we get away with knowing" is not a bad value (among others) to guide one's analytic approach. $\endgroup$
    – Alexis
    Commented May 3, 2014 at 2:02
1
$\begingroup$

Before you go ahead and start adding every control you can think of to your model, you need to think about whether or not those controls even belong in your model. Blindly adding more controls to your model does not generally make you better off (not even weakly so). Sometimes, you'll end up worse off. You need to think about the underlying data generating process and then decide what you're trying to test. Then, decide what controls belong in your model.

If all those control really do belong, then as long as you have enough degrees of freedom, you should be fine.

$\endgroup$

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.