Looping series
Posted: Wed Jul 15, 2009 8:09 am
Hi I'm a bit of a newbie with eviews programming and dont really get it!
I want to carry out a really simple thing.
Basically I have about 100 time series, OLS equations i want to estimate . For simplicity say I have a dependent variable Fruitprice, an explanatory variable vegetableprice and a specific fruit that i want for the additional explanatory variable which varies across each esimation eg.
Fruitprice c vegetableprice orange
Fruitprice c vegetableprice apple
x97 different fruits
Fruitprice c vegetableprice peach
Is there a loop i can use in which i can just copy all the fruit names into a list and loop through each one. I used to use Aremos and you could do something like:
For i = orange, apple, peach,...........;
equation "i".ls fruitprice c vegetableprice "i"
next i
Your help would be greatly appreciated!!!
I want to carry out a really simple thing.
Basically I have about 100 time series, OLS equations i want to estimate . For simplicity say I have a dependent variable Fruitprice, an explanatory variable vegetableprice and a specific fruit that i want for the additional explanatory variable which varies across each esimation eg.
Fruitprice c vegetableprice orange
Fruitprice c vegetableprice apple
x97 different fruits
Fruitprice c vegetableprice peach
Is there a loop i can use in which i can just copy all the fruit names into a list and loop through each one. I used to use Aremos and you could do something like:
For i = orange, apple, peach,...........;
equation "i".ls fruitprice c vegetableprice "i"
next i
Your help would be greatly appreciated!!!