Hi together,
I am struggling with a pretty pragmatic problem. Like the heading is indicating I am doing longitudinal analysis in STATA. Therefore I need to model a fixed-effects-modell and a random-effects-modell an compare them.
You can find the results listet below.The depend Variable is the job prestige of italian and turkish migrants in germany and the independent variables are the speaking and the writing skills (correlation >.60) in another modell I also add the age at immigration as a timeinvariant variable.
Now I have to compare these two modells, which is okay, but there is point which is overhelming me: the sigma values in the random-effects-modell and the comparisn of sigma_u between random- and fixed-effects.
I think that rho in context of the random-effects-modell indicates the estimated proportion of the between-variance at the total variance. It is calculated like this: sigma_u/sigma_u+ sigma_e
So sigma_u in the random-effects-modell has to be the between variance. But what is sigma_u in the fixed-effects-modell? And what is sigma_e in the random effects modell? Or how do I interpret them?

Another smaller problem is, that the Fu test, the corr(u_i,Xb) and the Hausman test indicate that I have to use the fixed-effects-modell. But actually its not significant. Could a conclusion be that there are timeinvariant variables missing in the modell, so that the fixed-effects-modell is not significant but reliable while the random-effects-modell is significant but distorted?
Best wishes, Marcel
Here is my stata code and output ('sprech' refers to speaking skills, and 'schreib' to writing skills):
I am struggling with a pretty pragmatic problem. Like the heading is indicating I am doing longitudinal analysis in STATA. Therefore I need to model a fixed-effects-modell and a random-effects-modell an compare them.
You can find the results listet below.The depend Variable is the job prestige of italian and turkish migrants in germany and the independent variables are the speaking and the writing skills (correlation >.60) in another modell I also add the age at immigration as a timeinvariant variable.
Now I have to compare these two modells, which is okay, but there is point which is overhelming me: the sigma values in the random-effects-modell and the comparisn of sigma_u between random- and fixed-effects.
I think that rho in context of the random-effects-modell indicates the estimated proportion of the between-variance at the total variance. It is calculated like this: sigma_u/sigma_u+ sigma_e
So sigma_u in the random-effects-modell has to be the between variance. But what is sigma_u in the fixed-effects-modell? And what is sigma_e in the random effects modell? Or how do I interpret them?
Another smaller problem is, that the Fu test, the corr(u_i,Xb) and the Hausman test indicate that I have to use the fixed-effects-modell. But actually its not significant. Could a conclusion be that there are timeinvariant variables missing in the modell, so that the fixed-effects-modell is not significant but reliable while the random-effects-modell is significant but distorted?
Best wishes, Marcel
Here is my stata code and output ('sprech' refers to speaking skills, and 'schreib' to writing skills):
Code:
xtreg magni sprech schreib, fe Fixed-effects (within) regression Number of obs = 7,101 Group variable: persnr Number of groups = 1,671 R-sq: Obs per group: within = 0.0009 min = 1 between = 0.1261 avg = 4.2 overall = 0.0886 max = 12 F(2,5428) = 2.35 corr(u_i, Xb) = 0.3095 Prob > F = 0.0957 ------------------------------------------------------------------------------ magni | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- sprech | -.0348806 .1858644 -0.19 0.851 -.3992494 .3294882 schreib | .3200283 .1595278 2.01 0.045 .0072898 .6327669 _cons | 39.60548 .596475 66.40 0.000 38.43615 40.77481 -------------+---------------------------------------------------------------- sigma_u | 12.114286 sigma_e | 7.0960819 rho | .74453704 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(1670, 5428) = 9.38 Prob > F = 0.0000 xtreg magni sprech schreib, re Random-effects GLS regression Number of obs = 7,101 Group variable: persnr Number of groups = 1,671 R-sq: Obs per group: within = 0.0008 min = 1 between = 0.1296 avg = 4.2 overall = 0.0910 max = 12 Wald chi2(2) = 103.07 corr(u_i, X) = 0 (assumed) Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ magni | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- sprech | .3574049 .1764036 2.03 0.043 .0116602 .7031495 schreib | 1.057315 .1459013 7.25 0.000 .7713538 1.343276 _cons | 36.68076 .5851259 62.69 0.000 35.53394 37.82759 -------------+---------------------------------------------------------------- sigma_u | 10.400567 sigma_e | 7.0960819 rho | .68235919 (fraction of variance due to u_i) ------------------------------------------------------------------------------
Comment