Page 1 of 1

How to run an action on multiple tabs at once?

Posted: Tue Apr 14, 2015 3:04 am
by augustus_octavian
Hi,

I have multiple tabs (for different countries) and for each I want to
- create a y variable, which is a ratio of 2 series in each tab
- then run a SS hp filter like this:

@signal y = tr + cyc
@state tr=2*tr(-1) - tr_lag(-1) + e1
@state tr_lag = tr(-1)
@state cyc=e2

@ename e1
@ename e2

@evar var(e1)=exp(c(1))
@evar var(e2)=exp(c(1))*1600


Is there any way to do this all at once for all countries?

Re: How to run an action on multiple tabs at once?

Posted: Tue Apr 14, 2015 5:57 am
by EViews Gareth
You'll have to write a loop that loops through all your pages and does the actions one at a time. Use the pageselect command to switch pages.