How to run an action on multiple tabs at once?
Posted: Tue Apr 14, 2015 3:04 am
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?
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?