Page 1 of 1

Version control of equations and coefficients

Posted: Tue Aug 14, 2012 1:23 pm
by wj_pgh
Hello,

I periodically run an Eviews model using a program, and would like the program to save the model's equations and the equations' coefficients each time the program runs.

To do this manually, I could open the model, click Proc > Links > Break all links - make equations inline, then click Text, and copy and paste the contents of the window.

Is there a way to program it?

I'm running Eviews 7 on Windows XP 2002 sp3.

Thanks!

Bill

Re: Version control of equations and coefficients

Posted: Tue Aug 14, 2012 2:46 pm
by EViews Gareth
Unfortunately there isn't really a way to do that programmatically, currently.

Re: Version control of equations and coefficients

Posted: Wed Aug 15, 2012 9:39 am
by wj_pgh
Thanks for the reply. I guess please add that to the user feature wishlist, then :) Before I give up and do it by hand - is there instead a way to write a program to copy individual equations into a text file or the equivalent, capturing the equation specification and its coefficients?

Re: Version control of equations and coefficients

Posted: Wed Aug 15, 2012 9:45 am
by EViews Glenn
Just a couple of random thoughts on this. [...this was written prior to your last response...]

If you can get somehow get a list of the equations in the model, then you can loop over the equations and get their substituted coefficients view directly from each equation using the @subst member. In the simple case where all of the equations in the workfile are used in the model, you can do something like

Code: Select all

string alleqs = @wlookup("*", "equation")
to get the initial list.

Re: Version control of equations and coefficients

Posted: Wed Aug 15, 2012 1:26 pm
by wj_pgh
Thanks, I'll give that a try!