Example of the code I'm using:
proc autoreg data = table_a plots;
model y=a b c /
method = ml
maxiter=50
nlag = 1
backstep slstay = 0.0500
DW=1;
output out = table_b lcl=lcl ucl=ucl p=predicted r=residual alphacli=0.05;
run;
Thank you,
Tali
Hi DW,
Thank you! that helps. I used
Hi Tali,
PROC AUTOREG with the NLAG= option fits a regression model with an autoregressive error process. When available, lags of the structural residuals are multiplied with the AR coefficients in the fitted model to obtain the predicted values. When lagged structural residuals are no longer available, a best linear predicted of the structural residual is used. For details, please see the following sections of the PROC AUTOREG documentation:
The following SAS Note might also be of interest to you:
http://support.sas.com/kb/40135
If you want to fit a model with a lagged dependent regressor and other exogenous variables, then you might want to consider using PROC VARMAX to model and forecast your data. Please see the following section of the PROC VARMAX documentation for details:
I hope this helps!
DW
Hi DW,
Thank you! that helps. I used
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
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.