Hi all,
Sorry for the frequent posts - but i'm not entirely sure after reading Longhi & Nandi's chapter on Xtreg, re, fe how I would solve this problem. I also have searched a few terms but I can't see a similar post.
I have ran a re model, which is clustered -
Checking for consistency, the xtoverid test suggests I should use a fe regression
However, I do not want to omit the sex variable as it is of interest to me for controlling/being a confounder.
Is there anyway I can use the random effects? Is there something I can do to incorporate sex, whilst still having a reliable, powerful model? I am not a statistician so any responses which can lead in me in the right direction in a way that I can understand would be really helpful.
Many thanks in advance.
Sorry for the frequent posts - but i'm not entirely sure after reading Longhi & Nandi's chapter on Xtreg, re, fe how I would solve this problem. I also have searched a few terms but I can't see a similar post.
I have ran a re model, which is clustered -
Code:
xtreg selfesteem dvage ypsex divorcemo emotabusemo physpunishtmo, re vce(cluster clusterhh) Random-effects GLS regression Number of obs = 834 Group variable: youth_pidp Number of groups = 795 R-sq: Obs per group: within = 0.0005 min = 1 between = 0.0331 avg = 1.0 overall = 0.0300 max = 2 Wald chi2(5) = 24.32 corr(u_i, X) = 0 (assumed) Prob > chi2 = 0.0002 (Std. Err. adjusted for 626 clusters in clusterhh) ------------------------------------------------------------------------------- | Robust selfesteem | Coef. Std. Err. z P>|z| [95% Conf. Interval] --------------+---------------------------------------------------------------- dvage | -.1344853 .0794991 -1.69 0.091 -.2903008 .0213301 ypsex | -.1276481 .2528637 -0.50 0.614 -.6232518 .3679557 divorcemo | -.978547 .4455818 -2.20 0.028 -1.851871 -.1052227 emotabusemo | .2393315 .064738 3.70 0.000 .1124474 .3662155 physpunishtmo | -.0460084 .0814713 -0.56 0.572 -.2056893 .1136724 _cons | 23.01266 1.562677 14.73 0.000 19.94987 26.07545 --------------+---------------------------------------------------------------- sigma_u | .82554565 sigma_e | 3.4511155 rho | .05412488 (fraction of variance due to u_i) -------------------------------------------------------------------------------
Checking for consistency, the xtoverid test suggests I should use a fe regression
Code:
Test of overidentifying restrictions: fixed vs random effects Cross-section time-series model: xtreg re robust cluster(clusterhh) Sargan-Hansen statistic 9.897 Chi-sq(4) P-value = 0.0422
However, I do not want to omit the sex variable as it is of interest to me for controlling/being a confounder.
Is there anyway I can use the random effects? Is there something I can do to incorporate sex, whilst still having a reliable, powerful model? I am not a statistician so any responses which can lead in me in the right direction in a way that I can understand would be really helpful.
Many thanks in advance.
Comment