However, if I only control for one variable it works, but if I add more control variables I just applies to the last control variable.
I tried to simply my problem to the following example, just run it and you see, that cs_0=vsc in the period 2011.4-2013.4.
However if you use more than one variable (i.e. for %var cs i ) than only i_0=vi but no longer cs_0=vsc.
Have you any ideas how I can solve the problem?
(The same problem applies when using Eviews 7.2)
Code: Select all
wfcreate(wf=q, page=myproject) q 1970 2020
smpl 1970.1 2011.3
'Series
genr cs=@nrnd
genr i=@nrnd
genr y=@nrnd
genr g=@nrnd
'Model Specification
model macro
macro.append cs = 10+0.8*y(-1)
macro.append i = 0.7*(y(-1)-y(-2))
macro.append g = 0.7*(y(-1))
macro.append y = cs+i+g
macro.addassign(v) @all 'assigns a variable shift to all equations in the model.
macro.addinit(v=z) @all
'Target Variable
smpl 2011.4 2013.4
genr vcs=1
genr vi=1
for %var cs 'i ' does not work with many control variables
macro.control {%var}_a {%var} v{%var}
next '%var
smpl 2011.4 2020
macro.solve
smpl 2011.1 2020.4
group gr cs vcs cs_0 i vi i_0
show gr