Identities in models with pool equations

For technical support, tips and tricks, suggestions, or any other information regarding the EViews model object.

Moderators: EViews Gareth, EViews Moderator

ottavio
Posts: 2
Joined: Fri Feb 01, 2019 9:36 am

Identities in models with pool equations

Postby ottavio » Fri Feb 01, 2019 11:16 am

Hello,
I'm trying to build a model using the pool object.
There is a very convenient way to proceed that allows to build a model with an equation estimated with a sequence o pool commands

for instance I can do the following for a consumption equation:
eu28_C.ls C? Y?(-1)
eu28_C.makemodel(M_europe)

At this point I have a model with an equation for each European EU country

I also found out that I can add to the same model an additional equation, for instance for investment
eu28_I.ls I? C?

I can easily edit the model and add this new equation to M_europe so that its text version will look like this:
:eu28_C
:eu28_I
The model will solve. Beautifull!

But now I have the problem
there is not (or I can not find the way to do it) the possibility to add a single identity which using pool commands would be something like
GDP? = C? + I?

I have to type in 28 identities
GDP_FRA = C_FRA + I_FRA
GDP_ITA = C_ITA + I_ITA
... and so forth

Is there a way out? Some trick that I do not know?
Are you planning to add this opportunity in future versions/upgrades?

thanks a lot
Ottavio

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

Re: Identities in models with pool equations

Postby EViews Gareth » Fri Feb 01, 2019 2:55 pm

Code: Select all

%list = eu28.@crossids
for %j {%list}
   m_europe.append @identity gdp_{%j} = c_{%j} + i_{%j}
next
Follow us on Twitter @IHSEViews

ottavio
Posts: 2
Joined: Fri Feb 01, 2019 9:36 am

Re: Identities in models with pool equations

Postby ottavio » Mon Feb 04, 2019 9:09 am

Thank you so much.
I think I will use those lines of command to build a number of models (one for each identity) and then nest all of them in a model

Ottavio


Return to “Models”

Who is online

Users browsing this forum: No registered users and 1 guest