building formula using strings
Posted: Wed Aug 09, 2023 11:18 pm
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] ?
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] ?