PANEL Procedure

Example 25.4 Panel Study of Income Dynamics (PSID): Hausman-Taylor Models

(View the complete code for this example.)

Cornwell and Rupert (1988) analyze data from the Panel Study of Income Dynamics (PSID), an income study of 595 individuals over the seven-year period 1976–1982. Of particular interest is the effect of additional schooling on wages. The analysis here replicates that of Baltagi (2013, sec. 7.5), where it is concluded that covariate correlation with individual effects makes a standard random-effects model inadequate.

The following statements create the PSID data set:

data psid;
   input id t lwage wks south smsa ms exp exp2 occ ind union fem blk ed;
   label id    = 'Person ID'
         t     = 'Time'
         lwage = 'Log(wages)'
         wks   = 'Weeks worked'
         south = '1 if resides in the South'
         smsa  = '1 if resides in SMSA'
         ms    = '1 if married'
         exp   = 'Years full-time experience'
         exp2  = 'exp squared'
         occ   = '1 if blue-collar occupation'
         ind   = '1 if manufacturing'
         union = '1 if union contract'
         fem   = '1 if female'
         blk   = '1 if black'
         ed    = 'Years of education';
datalines;
1    1  5.5606799126  32  1  0  1  3   9     0  0  0  0  0  9
1    2  5.7203102112  43  1  0  1  4   16    0  0  0  0  0  9
1    3  5.9964499474  40  1  0  1  5   25    0  0  0  0  0  9
1    4  5.9964499474  39  1  0  1  6   36    0  0  0  0  0  9
1    5  6.0614600182  42  1  0  1  7   49    0  1  0  0  0  9
1    6  6.1737899780  35  1  0  1  8   64    0  1  0  0  0  9
1    7  6.2441701889  32  1  0  1  9   81    0  1  0  0  0  9
2    1  6.1633100510  34  0  0  1  30  900   1  0  0  0  0  11
2    2  6.2146100998  27  0  0  1  31  961   1  0  0  0  0  11
2    3  6.2634000778  33  0  0  1  32  1024  1  1  1  0  0  11
2    4  6.5439100266  30  0  0  1  33  1089  1  1  0  0  0  11
2    5  6.6970300674  30  0  0  1  34  1156  1  1  0  0  0  11
2    6  6.7912201881  37  0  0  1  35  1225  1  1  0  0  0  11
2    7  6.8156399727  30  0  0  1  36  1296  1  1  0  0  0  11

   ... more lines ...   

You begin by fitting a one-way random-effects model:

proc sort data=psid;
   by id t;
run;

proc panel data=psid;
   id id t;
   model lwage = wks south smsa ms exp exp2 occ
                           ind union fem blk ed / ranone;
run;

The output is shown in Figure 2. The coefficient on the variable ED (which represents years of education) estimates that an additional year of schooling is associated with about a 10.7% increase in wages. However, the results of the Hausman test for random effects show a serious violation of the random-effects assumptions, namely that the regressors are independent of both error components.

Figure 2: One-Way Random-Effects Estimation

The PANEL Procedure
Fuller and Battese Variance Components (RanOne)
 
Dependent Variable: lwage (Log(wages))

Model Description
Estimation MethodRanOne
Number of Cross Sections595
Time Series Length7

Variance Component Estimates
Variance Component for Cross Sections0.100553
Variance Component for Error0.023102

Hausman Test for Random Effects
CoefficientsDFm ValuePr > m
995288.98<.0001

Parameter Estimates
VariableDFEstimateStandard
Error
t ValuePr > |t|Label
Intercept14.0308110.104438.59<.0001Intercept
wks10.0009540.0007401.290.1971Weeks worked
south1-0.007880.0281-0.280.77951 if resides in the South
smsa1-0.028980.0202-1.430.15171 if resides in SMSA
ms1-0.070670.0224-3.160.00161 if married
exp10.0877260.0028131.27<.0001Years full-time experience
exp21-0.000760.000062-12.31<.0001exp squared
occ1-0.042930.0162-2.650.00811 if blue-collar occupation
ind10.003810.01720.220.82421 if manufacturing
union10.0581210.01693.450.00061 if union contract
fem1-0.307910.0572-5.38<.00011 if female
blk1-0.219950.0660-3.330.00091 if black
ed10.107420.0064216.73<.0001Years of education


An alternative could be a fixed-effects (FIXONE option) model, but that would not permit estimation of the coefficient for ED, which does not vary within individuals. A compromise is the Hausman-Taylor model, for which you stipulate a set of covariates that are correlated with the individual effects (but uncorrelated with the observation-level errors). You specify the correlated variables in the CORRELATED= option in the INSTRUMENTS statement:

proc panel data=psid;
   id id t;
   instruments correlated = (wks ms exp exp2 union ed);
   model lwage = wks south smsa ms exp exp2 occ
                           ind union fem blk ed / htaylor;
run;

The results are shown in Figure 3. The table of parameter estimates has an added column, Type, that identifies which regressors are assumed to be correlated with individual effects (C) and which regressors do not vary within cross sections (TI). It was stated previously that the Hausman-Taylor model is a compromise between fixed-effects and random-effects models, and you can think of the compromise this way: You want to fit a random-effects model, but the correlated (C) variables make that model invalid. So you revert to the consistent fixed-effects model, but then the time-invariant (TI) variables are the problem because they will be dropped from that model. The solution is to use the Hausman-Taylor estimator.

The estimation results show that an additional year of schooling is now associated with a 13.8% increase in wages. Also presented is a Hausman test that compares this model to the fixed-effects model. As was the case previously when you fit the random-effects model, you can think of the Hausman test as a referendum on the assumptions that you are making. For this estimation, it seems that your choice of variables to treat as correlated is adequate. It also seems to be true that any correlation is with the individual-level effects, not the observation-level errors.

Figure 3: Hausman-Taylor Estimation

The PANEL Procedure
Hausman and Taylor Model for Correlated Individual Effects (HTaylor)
 
Dependent Variable: lwage (Log(wages))

Variance Component Estimates
Variance Component for Cross Sections0.886993
Variance Component for Error0.023044

Hausman Test against Fixed Effects
CoefficientsDFm ValuePr > m
935.260.1539

Parameter Estimates
VariableTypeDFEstimateStandard
Error
t ValuePr > |t|Label
Intercept  12.9127260.283710.27<.0001Intercept
wksC 10.0008370.0006001.400.1627Weeks worked
south  10.007440.03200.230.81591 if resides in the South
smsa  1-0.041830.0190-2.210.02741 if resides in SMSA
msC 1-0.029850.0190-1.570.11591 if married
expC 10.1131330.0024745.79<.0001Years full-time experience
exp2C 1-0.000420.000055-7.67<.0001exp squared
occ  1-0.02070.0138-1.500.13311 if blue-collar occupation
ind  10.0136040.01520.890.37201 if manufacturing
unionC 10.0327710.01492.200.02801 if union contract
fem TI1-0.130920.1267-1.030.30141 if female
blk TI1-0.285750.1557-1.840.06651 if black
edCTI10.1379440.02126.49<.0001Years of education

C: correlated with the individual effects
TI: constant (time-invariant) within cross sections



At its core, the Hausman-Taylor estimator is an instrumental variables regression, where the instruments are derived from regressors that are assumed to be uncorrelated with the individual effects. Technically, it is the cross-sectional means of these variables that need to be uncorrelated, not the variables themselves.

The Amemiya-MaCurdy model is a close relative of the Hausman-Taylor model. The only difference between the two is that the Amemiya-MaCurdy model makes the added assumption that the regressors (and not just their means) are uncorrelated with the individual effects. By making that assumption, the Amemiya-MaCurdy model can take advantage of a more efficient set of instrumental variables.

The following statements fit the Amemiya-MaCurdy model:

proc panel data=psid;
   id id t;
   instruments correlated = (wks ms exp exp2 union ed);
   model lwage = wks south smsa ms exp exp2 occ
                           ind union fem blk ed / amacurdy;
run;

The results are shown in Figure 4. Little is changed from the Hausman-Taylor model. The Hausman test compares the Amemiya-MaCurdy model to the Hausman-Taylor model and shows that the one additional assumption is acceptable. You even gain a bit of efficiency in the process: compare the standard deviations of the coefficient on the variable ED from both models.

Figure 4: Amemiya-MaCurdy Estimation

The PANEL Procedure
Amemiya and MaCurdy Model for Correlated Individual Effects (AMaCurdy)
 
Dependent Variable: lwage (Log(wages))

Variance Component Estimates
Variance Component for Cross Sections0.886993
Variance Component for Error0.023044

Hausman Test against Hausman-Taylor
CoefficientsDFm ValuePr > m
131314.670.3287

Parameter Estimates
VariableTypeDFEstimateStandard
Error
t ValuePr > |t|Label
Intercept  12.9273380.275110.64<.0001Intercept
wksC 10.0008380.0005991.400.1622Weeks worked
south  10.0072820.03190.230.81971 if resides in the South
smsa  1-0.041950.0189-2.210.02691 if resides in SMSA
msC 1-0.030090.0190-1.590.11271 if married
expC 10.112970.0024745.76<.0001Years full-time experience
exp2C 1-0.000420.000055-7.72<.0001exp squared
occ  1-0.020850.0138-1.510.12991 if blue-collar occupation
ind  10.0136290.01520.890.37091 if manufacturing
unionC 10.0324750.01492.180.02931 if union contract
fem TI1-0.132010.1266-1.040.29721 if female
blk TI1-0.28590.1555-1.840.06601 if black
edCTI10.1372050.02066.67<.0001Years of education

C: correlated with the individual effects
TI: constant (time-invariant) within cross sections



Finally, you should realize that the Hausman-Taylor and Amemiya-MaCurdy estimators are not cure-alls for correlated individual effects. Estimation tacitly relies on the uncorrelated regressors being sufficient to predict the correlated regressors. Otherwise, you run into the problem of weak instruments. If you have weak instruments, you will obtain biased estimates that have very large standard errors. However, that does not seem to be the case here.

Last updated: June 19, 2025