BookmarkSubscribeRSS Feed
SherriF
Obsidian | Level 7

Hi,

 

I am trying to program a regression model which includes multiple independent variables and a lagged dependent variable. It can be written as

                                                                  Yt=a0 + a1*X1+a2*X2+a3*X3+a4*Yt-1

where Yt is predicted value at time t, X1-X4 are independent varibales, Yt-1 is the predicted value at time t-1, and a0-a4 are parameters.

 

My questions is which proc statement I should use.

 

Thanks,

Sherri

2 REPLIES 2
Ksharp
Super User

If I was right, PROC ARIMA could do it .

user24feb
Barite | Level 11

.. or proc autoreg (use nlag for yt-1) or even proc reg (if you use lag function on y).

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

Multiple Linear Regression in SAS

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.

Discussion stats
  • 2 replies
  • 745 views
  • 0 likes
  • 3 in conversation