I want to create a AR(P) and eventually ARDL forecasting models by estimating the parametar values via OLS. SAS seems to only use MLE or other non linear least squares to fit models. PROC AUTOREG seems to use OLS up until AR terms are used in the model (OLS isnt an option with nlag=). Therefore, I am using PROC REG and haveing to create forecasts myself. Most of that is easy except for the h-step-ahead forecasting intervals. Anyone know of a good way to program those? Or is there a package that estimates via OLS and will forecast?
Thanks.
I suggest using PROC ARIMA. See the documentation at:
You can specify LEAD=n option in FORECAST statement. See the details at:
See the estimation methods at the following link; you might want to use the METHOD=ULS option as it produces unconditional least squares estimates:
Alternatively, you can use the combination of HPFARIMASPEC procedure and PROC HPFENGINE. You will have all the options specified in PROC ARIMA as well. See the details at:
Thanks, Imvash. Is ULS the same as OLS? From the documentation, it appears to be same. Or is there a difference?
Thanks.
Same. It minimizes the sum of squared residuals.
Thanks again. One more question: When I run the same model in proc reg and proc arima, why would the parametar estimates differ? They are only differenent if I include lagged and differenced dependent variables. Does a data step calculate the lags and differences differently than proc arima? Or what would be the difference in estimates? Thanks!
Dear sir, good evening. I am new to SAS econometrics. I want to run Autoregressive Distributed Lag (ARDL) Model in SAS, but I could not find the steps to run the ARDL model in SAS. I could not find any example of the ARDL model in SAS, Can please help me provide the steps to run ARDL in SAS? Thank you with regards.
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.