"Solve Control for Target" to new variable

For questions regarding programming in the EViews programming language.

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

KrilleJ
Posts: 40
Joined: Fri Feb 20, 2015 6:15 am

"Solve Control for Target" to new variable

Postby KrilleJ » Mon Feb 27, 2017 2:41 am

Hi.

I have a question regarding "Solve Control for Target".

Suppose that I have a model with the equations:

y1=x1
y2=x2
sum=x1+x2


Suppose that y1, y2 and sum are endogeneous and that x1 and x2 are exogeneous and take the values 1 and 2 throughout the sample.

Also, the series target_zero contains zeros everywhere in the sample.

If I want to solve for x1 to obtain a sum that is equal to target_zero, I use:

MyMod.control x1 sum target_zero

However, the series x1 is overwritten with the new solved values (-2). Is there a way to (automatically) let the solved values for x1 be stored in a new variable, e.g. with the name x1_0?

Best,
Kristian

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

Re: "Solve Control for Target" to new variable

Postby EViews Gareth » Mon Feb 27, 2017 9:11 am

I believe not.
Follow us on Twitter @IHSEViews


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 40 guests