BookmarkSubscribeRSS Feed
KrisDeng
Obsidian | Level 7

Hello,

 

I am a novice user and my data is a time series that consists of different companies with unique id, date, stock price, EPS and dividend. For the sake of simplicity I made a sample as below:

data have;                  
   input id date a b c;      
   datalines;           
1 201001 56 7  1
1 201002 58 6  2
1 201003 54 7  1
1 201004 55 5  3
2 201001 80 10 5
2 201002 81 11 3
2 201003 83 12 2
3 201001 20 3  1
3 201002 22 2  1
/* etc. */
;  

 

 

I'm trying to estimate/create the variable X for every obsevation that is the solution of an autoregressive equation of a, b and c as follows:

eqt.jpg

 

 

In this example the equation envolves values going up to 3 periods into the future, so I suppose I can use brute force method and create all 3 future values of b and c. However if I want to examine further, say 36 or 48 periods, things will get very messy. Even if this is done, the equation is still a (very long) cubic equation, which to be honest at this point I'm not sure how to estimate.

 

I would really appreciate any suggestions here. Thank you very much in advance.

 

Best.

 

SAS Innovate 2025: Call for Content

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 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 0 replies
  • 362 views
  • 0 likes
  • 1 in conversation