Page 1 of 1
Find/Delete or Replace an equation in model's text form?
Posted: Mon Oct 07, 2013 8:00 am
by tbui
Hi all,
We used the GI US model for work. We did replace a few equations for own likings. However, we have to do the replacements manually every month when new GI forecast come out. Is there any way to program that part? We do have a fixed set of equations we'd like to replace.
Thanks,
T
Re: Find/Delete or Replace an equation in model's text form?
Posted: Mon Oct 07, 2013 8:05 am
by EViews Gareth
You can use either model.replace or model.replacelink. Both are documented in the Object Reference.
Re: Find/Delete or Replace an equation in model's text form?
Posted: Mon Oct 07, 2013 8:51 am
by tbui
Got it work. Also, it seems like equations coefficients must be fully substituted to have it work properly if LHS has been transformed (i.e., log(sp500) versus sp500 originally)?
Thanks,
T
Re: Find/Delete or Replace an equation in model's text form?
Posted: Mon Oct 07, 2013 9:10 am
by tbui
Hi Gareth,
I guess what I'm really looking for is to replace a text specification of an equation with a linked one so that we can easily find and modify it later in the process. I can write a code to replace all equations that have been modified by us in the GI US Macro model. However, it is often proned to err if one forgets to update the text specifications after playing with the equation object.
Is there anyway to completely remove the text specification and replace with a linked equation within the model?
Thanks,
T
Re: Find/Delete or Replace an equation in model's text form?
Posted: Mon Oct 07, 2013 9:16 am
by EViews Gareth
Use model.drop to drop the existing specification, then model.append to add a new one.
Re: Find/Delete or Replace an equation in model's text form?
Posted: Mon Oct 07, 2013 9:26 am
by tbui
Great, I thought it didn't work with text. Now it's easier. Also, I think the command I will use is the model.merge to add the new linked equation object.
Thanks very much,
T
Re: Find/Delete or Replace an equation in model's text form?
Posted: Mon Mar 03, 2014 9:13 am
by jfgeli
Hi,
I am trying to replace an equation in my model with the replace command but somehow it does not work. The model is called mod_01 so I do mod_01.replace c = a + b +c . I am using Eviews 7.2 but I could not find the documentation in the command reference. Could you please show me with an example how it works?
Cheers,
Fede
Re: Find/Delete or Replace an equation in model's text form?
Posted: Mon Mar 03, 2014 9:17 am
by EViews Gareth
It isn't available in EViews 7.