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
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.