Excluding variables from model solve

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

Moderators: EViews Gareth, EViews Moderator

theagney
Posts: 6
Joined: Tue Oct 16, 2018 10:15 pm

Excluding variables from model solve

Postby theagney » Sun May 12, 2019 6:41 pm

Hi there!

I'm trying to exclude an endogenous variable from the model object so that it can then be used as a control variable. When I use the "model.exclude" command, the variable comes up in the model object's exclusion list, but when I go to calculate the control variable (as part of a targeting process), the program throws an error saying that the control variable is still endogenous.

Any thoughts on why it is still endogenous?

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

Re: Excluding variables from model solve

Postby EViews Gareth » Sun May 12, 2019 8:58 pm

Can you provide more precise detail on what you're doing?
Follow us on Twitter @IHSEViews

theagney
Posts: 6
Joined: Tue Oct 16, 2018 10:15 pm

Re: Excluding variables from model solve

Postby theagney » Mon May 13, 2019 4:42 pm

We have a set of equations used for forecasting economic variables. For some of these equations, we have values we want to target. To target these values, we want to use other equations within this set as controls. To use these equations as controls, we need to exclude them from the model solve (i.e. make them exogenous). When using the "exclude" command, this places the equation that we want as the control into the exclusion list of the scenario, but doesn't comment it out of the text in the model object. Hence when we try to target a variable using the excluded variable as a control (e.g. m.control invest gdp gdp_target), the solver is still saying that the control variable (invest) is still endogenous.

Is the right command/approach for what we are trying to do?

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

Re: Excluding variables from model solve

Postby EViews Gareth » Mon May 13, 2019 4:52 pm

Ah, that is currently not possible the way you're doing it.

You could remove the investment equation, although you'll have to figure out if that breaks other interactions you're interested in.
Follow us on Twitter @IHSEViews


Return to “Models”

Who is online

Users browsing this forum: No registered users and 1 guest