@meansby in a model
Posted: Tue Jul 21, 2015 4:14 pm
Hi -
I have not been able to use the @meansby funcion inside a model. The code below is an example
wfcreate q 1990q1 2016q4
smpl @all
series aa = 0
model teste
teste.append aa = @trend
teste.append aa_ex1 = @meansby(aa, @year)
teste.append aa_ex2 = aa(-1)
smpl 2000q1 2016q4
solve teste
It evaluates aa_ex1 using the original aa series (not what I wanted), but evaluates aa_ex2 using the solved aa_0 series.
This means that @meansby doesn't in a model?
Thanks
I have not been able to use the @meansby funcion inside a model. The code below is an example
wfcreate q 1990q1 2016q4
smpl @all
series aa = 0
model teste
teste.append aa = @trend
teste.append aa_ex1 = @meansby(aa, @year)
teste.append aa_ex2 = aa(-1)
smpl 2000q1 2016q4
solve teste
It evaluates aa_ex1 using the original aa series (not what I wanted), but evaluates aa_ex2 using the solved aa_0 series.
This means that @meansby doesn't in a model?
Thanks