---------------------------------------------------------------------------------- name: log: C:\Users\LabProf01\Desktop\Panel.log log type: text opened on: 24 May 2023, 15:52:55 . reg lwage educ black hisp exper expersq married union Source | SS df MS Number of obs = 4,360 -------------+---------------------------------- F(7, 4352) = 142.61 Model | 230.719766 7 32.9599665 Prob > F = 0.0000 Residual | 1005.80988 4,352 .231114402 R-squared = 0.1866 -------------+---------------------------------- Adj R-squared = 0.1853 Total | 1236.52964 4,359 .283672779 Root MSE = .48074 ------------------------------------------------------------------------------ lwage | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- educ | .0993878 .0046776 21.25 0.000 .0902173 .1085583 black | -.1438417 .0235595 -6.11 0.000 -.1900303 -.0976531 hisp | .015698 .0208112 0.75 0.451 -.0251026 .0564985 exper | .0891791 .010111 8.82 0.000 .0693563 .1090019 expersq | -.0028487 .0007074 -4.03 0.000 -.0042354 -.0014619 married | .1076656 .0156965 6.86 0.000 .0768925 .1384387 union | .1800726 .0171205 10.52 0.000 .1465076 .2136375 _cons | -.0347057 .064569 -0.54 0.591 -.1612938 .0918824 ------------------------------------------------------------------------------ . xtreg lwage educ black hisp exper expersq married union, fe note: educ omitted because of collinearity note: black omitted because of collinearity note: hisp omitted because of collinearity Fixed-effects (within) regression Number of obs = 4,360 Group variable: nr Number of groups = 545 R-sq: Obs per group: within = 0.1780 min = 8 between = 0.0005 avg = 8.0 overall = 0.0638 max = 8 F(4,3811) = 206.38 corr(u_i, Xb) = -0.1139 Prob > F = 0.0000 ------------------------------------------------------------------------------ lwage | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- educ | 0 (omitted) black | 0 (omitted) hisp | 0 (omitted) exper | .1168467 .0084197 13.88 0.000 .1003392 .1333542 expersq | -.0043009 .0006053 -7.11 0.000 -.0054876 -.0031142 married | .0453033 .0183097 2.47 0.013 .0094056 .081201 union | .0820871 .0192907 4.26 0.000 .044266 .1199083 _cons | 1.06488 .0266607 39.94 0.000 1.012609 1.11715 -------------+---------------------------------------------------------------- sigma_u | .4000539 sigma_e | .35125535 rho | .5646785 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(544, 3811) = 9.71 Prob > F = 0.0000 . xtreg lwage educ black hisp exper expersq married union, re Random-effects GLS regression Number of obs = 4,360 Group variable: nr Number of groups = 545 R-sq: Obs per group: within = 0.1774 min = 8 between = 0.1837 avg = 8.0 overall = 0.1808 max = 8 Wald chi2(7) = 943.95 corr(u_i, X) = 0 (assumed) Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ lwage | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- educ | .1012246 .0089133 11.36 0.000 .0837549 .1186943 black | -.1441307 .0476148 -3.03 0.002 -.237454 -.0508073 hisp | .0201511 .0426011 0.47 0.636 -.0633456 .1036477 exper | .1121195 .0082609 13.57 0.000 .0959285 .1283105 expersq | -.0040689 .0005918 -6.88 0.000 -.0052288 -.0029089 married | .0627951 .0167729 3.74 0.000 .0299209 .0956693 union | .1073789 .01783 6.02 0.000 .0724327 .142325 _cons | -.1074643 .1107057 -0.97 0.332 -.3244435 .1095149 -------------+---------------------------------------------------------------- sigma_u | .32456727 sigma_e | .35125535 rho | .46057172 (fraction of variance due to u_i) ------------------------------------------------------------------------------ . xtreg lwage educ black hisp exper expersq married union, fe note: educ omitted because of collinearity note: black omitted because of collinearity note: hisp omitted because of collinearity Fixed-effects (within) regression Number of obs = 4,360 Group variable: nr Number of groups = 545 R-sq: Obs per group: within = 0.1780 min = 8 between = 0.0005 avg = 8.0 overall = 0.0638 max = 8 F(4,3811) = 206.38 corr(u_i, Xb) = -0.1139 Prob > F = 0.0000 ------------------------------------------------------------------------------ lwage | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- educ | 0 (omitted) black | 0 (omitted) hisp | 0 (omitted) exper | .1168467 .0084197 13.88 0.000 .1003392 .1333542 expersq | -.0043009 .0006053 -7.11 0.000 -.0054876 -.0031142 married | .0453033 .0183097 2.47 0.013 .0094056 .081201 union | .0820871 .0192907 4.26 0.000 .044266 .1199083 _cons | 1.06488 .0266607 39.94 0.000 1.012609 1.11715 -------------+---------------------------------------------------------------- sigma_u | .4000539 sigma_e | .35125535 rho | .5646785 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(544, 3811) = 9.71 Prob > F = 0.0000 . estimates store fe . xtreg lwage educ black hisp exper expersq married union, re Random-effects GLS regression Number of obs = 4,360 Group variable: nr Number of groups = 545 R-sq: Obs per group: within = 0.1774 min = 8 between = 0.1837 avg = 8.0 overall = 0.1808 max = 8 Wald chi2(7) = 943.95 corr(u_i, X) = 0 (assumed) Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ lwage | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- educ | .1012246 .0089133 11.36 0.000 .0837549 .1186943 black | -.1441307 .0476148 -3.03 0.002 -.237454 -.0508073 hisp | .0201511 .0426011 0.47 0.636 -.0633456 .1036477 exper | .1121195 .0082609 13.57 0.000 .0959285 .1283105 expersq | -.0040689 .0005918 -6.88 0.000 -.0052288 -.0029089 married | .0627951 .0167729 3.74 0.000 .0299209 .0956693 union | .1073789 .01783 6.02 0.000 .0724327 .142325 _cons | -.1074643 .1107057 -0.97 0.332 -.3244435 .1095149 -------------+---------------------------------------------------------------- sigma_u | .32456727 sigma_e | .35125535 rho | .46057172 (fraction of variance due to u_i) ------------------------------------------------------------------------------ . estimates store re . hausman fe re ---- Coefficients ---- | (b) (B) (b-B) sqrt(diag(V_b-V_B)) | fe re Difference S.E. -------------+---------------------------------------------------------------- exper | .1168467 .1121195 .0047272 .0016276 expersq | -.0043009 -.0040689 -.000232 .0001269 married | .0453033 .0627951 -.0174918 .0073427 union | .0820871 .1073789 -.0252917 .0073636 ------------------------------------------------------------------------------ b = consistent under Ho and Ha; obtained from xtreg B = inconsistent under Ha, efficient under Ho; obtained from xtreg Test: Ho: difference in coefficients not systematic chi2(4) = (b-B)'[(V_b-V_B)^(-1)](b-B) = 31.45 Prob>chi2 = 0.0000 . xtreg lwage educ black hisp exper expersq married union, fe note: educ omitted because of collinearity note: black omitted because of collinearity note: hisp omitted because of collinearity Fixed-effects (within) regression Number of obs = 4,360 Group variable: nr Number of groups = 545 R-sq: Obs per group: within = 0.1780 min = 8 between = 0.0005 avg = 8.0 overall = 0.0638 max = 8 F(4,3811) = 206.38 corr(u_i, Xb) = -0.1139 Prob > F = 0.0000 ------------------------------------------------------------------------------ lwage | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- educ | 0 (omitted) black | 0 (omitted) hisp | 0 (omitted) exper | .1168467 .0084197 13.88 0.000 .1003392 .1333542 expersq | -.0043009 .0006053 -7.11 0.000 -.0054876 -.0031142 married | .0453033 .0183097 2.47 0.013 .0094056 .081201 union | .0820871 .0192907 4.26 0.000 .044266 .1199083 _cons | 1.06488 .0266607 39.94 0.000 1.012609 1.11715 -------------+---------------------------------------------------------------- sigma_u | .4000539 sigma_e | .35125535 rho | .5646785 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(544, 3811) = 9.71 Prob > F = 0.0000 . predict res_fe, e . reg res_fe l.res_fe not sorted r(5); . xtset nr year panel variable: nr (strongly balanced) time variable: year, 1980 to 1987 delta: 1 unit . reg res_fe l.res_fe Source | SS df MS Number of obs = 3,815 -------------+---------------------------------- F(1, 3813) = 9.24 Model | .877446855 1 .877446855 Prob > F = 0.0024 Residual | 361.983527 3,813 .094934048 R-squared = 0.0024 -------------+---------------------------------- Adj R-squared = 0.0022 Total | 362.860974 3,814 .095139217 Root MSE = .30811 ------------------------------------------------------------------------------ res_fe | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- res_fe | L1. | .0454589 .0149527 3.04 0.002 .0161428 .0747749 | _cons | .0004266 .0049887 0.09 0.932 -.0093542 .0102074 ------------------------------------------------------------------------------ . xtreg lwage educ black hisp exper expersq married union, fe cluster(nr) note: educ omitted because of collinearity note: black omitted because of collinearity note: hisp omitted because of collinearity Fixed-effects (within) regression Number of obs = 4,360 Group variable: nr Number of groups = 545 R-sq: Obs per group: within = 0.1780 min = 8 between = 0.0005 avg = 8.0 overall = 0.0638 max = 8 F(4,544) = 107.94 corr(u_i, Xb) = -0.1139 Prob > F = 0.0000 (Std. Err. adjusted for 545 clusters in nr) ------------------------------------------------------------------------------ | Robust lwage | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- educ | 0 (omitted) black | 0 (omitted) hisp | 0 (omitted) exper | .1168467 .010713 10.91 0.000 .0958028 .1378906 expersq | -.0043009 .0006861 -6.27 0.000 -.0056486 -.0029532 married | .0453033 .0210041 2.16 0.031 .0040442 .0865625 union | .0820871 .0228266 3.60 0.000 .037248 .1269262 _cons | 1.06488 .0366294 29.07 0.000 .9929274 1.136832 -------------+---------------------------------------------------------------- sigma_u | .4000539 sigma_e | .35125535 rho | .5646785 (fraction of variance due to u_i) ------------------------------------------------------------------------------ . xttest3 command xttest3 is unrecognized r(199); . ssc install xttest3 checking xttest3 consistency and verifying not already installed... installing into c:\ado\plus\... installation complete. . xttest3 Modified Wald test for groupwise heteroskedasticity in fixed effect regression model H0: sigma(i)^2 = sigma^2 for all i chi2 (545) = 2.2e+05 Prob>chi2 = 0.0000 . xtreg lwage educ black hisp exper expersq married union, re cluster(nr) Random-effects GLS regression Number of obs = 4,360 Group variable: nr Number of groups = 545 R-sq: Obs per group: within = 0.1774 min = 8 between = 0.1837 avg = 8.0 overall = 0.1808 max = 8 Wald chi2(7) = 577.54 corr(u_i, X) = 0 (assumed) Prob > chi2 = 0.0000 (Std. Err. adjusted for 545 clusters in nr) ------------------------------------------------------------------------------ | Robust lwage | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- educ | .1012246 .0088902 11.39 0.000 .0838001 .1186492 black | -.1441307 .0503425 -2.86 0.004 -.2428002 -.0454612 hisp | .0201511 .0399299 0.50 0.614 -.0581102 .0984123 exper | .1121195 .0105475 10.63 0.000 .0914469 .1327921 expersq | -.0040689 .0006747 -6.03 0.000 -.0053913 -.0027465 married | .0627951 .0189972 3.31 0.001 .0255614 .1000288 union | .1073789 .0209015 5.14 0.000 .0664127 .148345 _cons | -.1074643 .1151611 -0.93 0.351 -.3331759 .1182473 -------------+---------------------------------------------------------------- sigma_u | .32456727 sigma_e | .35125535 rho | .46057172 (fraction of variance due to u_i) ------------------------------------------------------------------------------ . log close name: log: C:\Users\LabProf01\Desktop\Panel.log log type: text closed on: 24 May 2023, 16:11:54 ----------------------------------------------------------------------------------