Data available to an analyst might sometimes be censored, where only part of the actual series is observed. Consider the case in which only observations greater than some lower bound are recorded, as defined by the following process:
Running ordinary least squares estimation on data generated by the preceding process is not optimal because the estimates are likely to be biased and inefficient. One alternative to estimating models with censored data is the tobit estimator. This model is supported in the QLIM procedure in SAS/ETS and in the LIFEREG procedure in SAS/STAT. PROC ENTROPY provides another alternative which can make it very easy to estimate such a model correctly.
The following DATA step generates censored data in which any negative values of the dependent variable, y
, are set to a lower bound of 0.
data cens; do t = 1 to 100; x1 = 5 * ranuni(456); x2 = 10 * ranuni(456); y = 4.5*x1 + 2*x2 + 15 * rannor(456); if( y<0 ) then y = 0; output; end; run;
To illustrate the effect of the censored option in PROC ENTROPY, the model is initially estimated without accounting for censoring in the following statements:
title "Censored Data Estimation"; proc entropy data = cens gme primal; priors intercept -32 32 x1 -15 15 x2 -15 15; model y = x1 x2 / esupports = (-25 1 25); run;
The previous model is reestimated by using the CENSORED option in the following statements:
proc entropy data = cens gme primal; priors intercept -32 32 x1 -15 15 x2 -15 15; model y = x1 x2 / esupports = (-25 1 25) censored(lb = 0, esupports=(-15 1 15) ); run;
The second set of entropy estimates are much closer to the true parameter estimates of 4.5 and 2. Since another alternative available for fitting a model of censored data is a tobit model, PROC QLIM is used in the following statements to fit a tobit model to the data:
proc qlim data=cens; model y = x1 x2; endogenous y ~ censored(lb=0); run;
For this data and code, PROC ENTROPY produces estimates that are closer to the true parameter values than those computed by PROC QLIM.