@meansby in a model

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

burity
Posts: 2
Joined: Tue Jul 21, 2015 4:01 pm

@meansby in a model

Postby burity » 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

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 12640
Joined: Tue Sep 16, 2008 5:38 pm

Re: @meansby in a model

Postby EViews Gareth » Tue Jul 21, 2015 4:44 pm

Correct. Most functions like that are calculated statically prior to the model solve.
Follow us on Twitter @IHSEViews

burity
Posts: 2
Joined: Tue Jul 21, 2015 4:01 pm

Re: @meansby in a model

Postby burity » Wed Jul 22, 2015 10:10 am

Ok, thanks.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 17 guests