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
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.