I want to build a loop that receives number of required lags and returns the regression formula based on that In Eviews 12
i.e. lag=3 : y c x(-1) x(-2) x(-3) and then I want to feed it to my regression analysis.
So I was thinking of using a loop that constructs this formula in the format of strings based on the lags determined. How can I then feed it to the command F(Y).regtype [string] ?
building formula using strings
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
Re: building formula using strings
if someone could help me with this question i will really appreciate it. my formulas need 15+ lags inclucded (and it varies) if I always need to input manually it takes lots of time and leave room for input errors. So I need to give the number of lags and receive an autoregressive formula based on that
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13323
- Joined: Tue Sep 16, 2008 5:38 pm
Re: building formula using strings
Read through this:
viewtopic.php?f=5&t=1638
viewtopic.php?f=5&t=1638
Follow us on Twitter @IHSEViews
Who is online
Users browsing this forum: No registered users and 11 guests