I have a panel data, and I am running my model like this:
Y = B0 + B1X + error
I ran the model using QLIM procedure, and I need to include the serial autocorrelation to it. The DW test using Proc Autoreg shows significant P-Value as in this examample:
I am a STATA geek, and this can be done in STATA in one line as follows (after setting my time variable):
xttobit Y X, robust
Can you please let me know how this should be done in SAS?
Thanks
Hi,
You can estimate random-effects tobit models in PROC QLIM using the new RANDOM statement. A simple example, based on your model, for the syntax would be
PROC QLIM;
MODEL Y = X / censored(lb=0);
RANDOM INT / SUBJECT=id METHOD=HERMITE(QPOINTS=12);
RUN;
Currently, PROC QLIM does not offer an option for obtaining robust standard errors for heteroskedasticity and serial correlation.
Please note that xttobit does not have the “robust” option, either.
If you are willing to specify the nature of the standard errors, then you might estimate your model with PROC NLMIXED by modeling the standard errors explicitly.
Best regards,
Gunce
Hi,
You must have an older version of SAS/ETS. PROC QLIM started supporting the RANDOM statement starting from version 14.1.
Gunce
Hi,
As I mentioned before, you can use PROC NLMIXED and specify the nature of the standard errors.
Best regards,
Gunce
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.