Hi,
I am using stata 12 and currently have the following regression output using a fixed effects estimator shown below. I have an interaction term between two categorical variables. The first categorical variable ranges from 0 to 2, the second is dichotomous and switch from 0 to 1. Stata automatically omitts two possible interaction-combinations, although the variables alone are not omitted because of collinearity.
Can anyone help me why this is the case and how to deal with it?
I am using stata 12 and currently have the following regression output using a fixed effects estimator shown below. I have an interaction term between two categorical variables. The first categorical variable ranges from 0 to 2, the second is dichotomous and switch from 0 to 1. Stata automatically omitts two possible interaction-combinations, although the variables alone are not omitted because of collinearity.
Can anyone help me why this is the case and how to deal with it?
Code:
. xtreg zufr ehe_kat#eltern ehe_kat eltern if sex==0, fe // alle note: 0b.ehe_kat#1.eltern omitted because of collinearity note: 2.ehe_kat#0b.eltern omitted because of collinearity Fixed-effects (within) regression Number of obs = 48798 Group variable: id Number of groups = 7978 R-sq: within = 0.0035 Obs per group: min = 2 between = 0.0061 avg = 6.1 overall = 0.0031 max = 19 F(5,40815) = 28.73 corr(u_i, Xb) = -0.0407 Prob > F = 0.0000 -------------------------------------------------------------------------------- zufr | Coef. Std. Err. t P>|t| [95% Conf. Interval] ---------------+---------------------------------------------------------------- ehe_kat#eltern | 0 1 | 0 (omitted) 1 0 | .1214574 .0345828 3.51 0.000 .0536744 .1892405 1 1 | .2465575 .0529449 4.66 0.000 .1427844 .3503306 2 0 | 0 (omitted) 2 1 | -.0315965 .0683041 -0.46 0.644 -.165474 .102281 | ehe_kat | -.1620725 .0236818 -6.84 0.000 -.2084894 -.1156557 eltern | -.2207379 .0346932 -6.36 0.000 -.2887373 -.1527385 _cons | 7.336172 .0242491 302.53 0.000 7.288643 7.383701 ---------------+---------------------------------------------------------------- sigma_u | 1.3171201 sigma_e | 1.1824423 rho | .55372455 (fraction of variance due to u_i) -------------------------------------------------------------------------------- F test that all u_i=0: F(7977, 40815) = 6.57 Prob > F = 0.0000
Comment