Page 1 of 1

Import eqonometric equations

Posted: Mon Jul 24, 2017 7:48 am
by Dag Kolsrud
I want to import a model containing hundreds of eqonometric equations and thousands of identities. A program that reads the identities from a text file and performs the necessary substitutions work ok. But how can I import equations from a text file where each line looks something like

DEL(1:LOG(BH10)) = bhr11+bhr.11+bh.11[1]+bh.11[2]*DEL(1:LOG(BH10(-1)))+...

into an equation object? (Don't mind the different syntax, that can be changed by substitution)

Re: Import eqonometric equations

Posted: Mon Jul 24, 2017 7:52 am
by EViews Gareth

Re: Import eqonometric equations

Posted: Tue Jul 25, 2017 12:56 am
by Dag Kolsrud
Thanks, but it does not work declareing an econometric Equation object and then append the equation formulation read from a text file and edited into EViews syntax. Even this does not work:

equation eq1
eq1.append h10 c dum904 jk72

But this does:

%eq_bh10 = "h10 c dum904 jk72"
equation eq_bh10.ls {%eq}

It seems like the estimation method has to be predetermined to be a property of the equation object and the equation formulation read from file has to be transformed to EViews syntax by string manipulation. Is that that true?

Re: Import eqonometric equations

Posted: Tue Jul 25, 2017 5:41 am
by EViews Gareth
Yes.