Page 1 of 1

@meansby in a model

Posted: Tue Jul 21, 2015 4:14 pm
by burity
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

Re: @meansby in a model

Posted: Tue Jul 21, 2015 4:44 pm
by EViews Gareth
Correct. Most functions like that are calculated statically prior to the model solve.

Re: @meansby in a model

Posted: Wed Jul 22, 2015 10:10 am
by burity
Ok, thanks.