0
$\begingroup$

Hey let's say that I want to predict fuel consumption of a car and I have some independent variables and one qualitative variable which is country in which car was produced (assume that in the data we have only three countries: Spain, Japan, USA). So to avoid "dummy trap" I should create 2 dummy variables (Spain and Japan) instead of three, am I right (or three dummies but without intercept)? But what if I want to predict fuel consumption of a car which is produced in Germany (this country isnt included in data which we use to create model). Whether the "dummy trap" also occurs in logit and probit regression or only in linear?

$\endgroup$

1 Answer 1

0
$\begingroup$

Answering your questions:

  1. Yes, that is correct. Including all three dummies in the model would result in perfect colinearity, and the statistical software would drop one of them for you. All dummy coefficients would therefore be in relation to the omitted dummy. You may not include all 3 dummies even without the intercept, as a dummy represents a change in the level of the fitted line. Without an intercept, your model is equivalent estimating the model as deviations from the mean, and including 3 dummies would implicate in the same perfect colinearity problem (violating OLS assumptions).
  2. If you don't have information about cars in Germany, you may not use this model to predict consumption of cars produced there. If you don't include any dummies you may extrapolate the model to Germany, but that wouldn't be credible as you have reason to believe that being made in Germany can affect independent variables (e.g: brand of the car, type of engine etc.) and is correlated with your outcome variable as well, causing a potential endogeneity issue. All you cans ay with the dummies you have is that, by omitting one of them, a car made in the country which the dummy is = 1 consumes $\beta$ extra liters than the baseline country (omitted dummy).
  3. Yes, it occurs in logit and probit as well. You won't have a full-rank X if your regressors are perfectly colinear, and therefore won't be able to invert it.
$\endgroup$
2
  • $\begingroup$ So the only way is to omit "country" variable during model estimation if I want to use model also for other countries? And what should I do if "Japan" variable is not significant? Should I omit it and keep model only with one dummy variable or all dummies should be included in the model? $\endgroup$ Commented Apr 27, 2021 at 21:11
  • $\begingroup$ Yes, notice how it would be the equivalent: if you include both dummies, the fact that your country is not the one the dummies make reference to would mean the dummy variables are both = 0. Also, the question of significance is rather tricky: if your goal is simply prediction, than you can exclude the variable from the model. If it’s causality, however, you should include it to know the effect or lack of. Also, keep in mind potential endogeneity issues if omitting relevant variables from the model. $\endgroup$
    – Caio C.
    Commented Apr 28, 2021 at 22:51

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.