Import eqonometric equations

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator

Dag Kolsrud
Posts: 2
Joined: Mon Jul 17, 2017 3:49 am

Import eqonometric equations

Postby Dag Kolsrud » Mon Jul 24, 2017 7:48 am

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)

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

Re: Import eqonometric equations

Postby EViews Gareth » Mon Jul 24, 2017 7:52 am

Follow us on Twitter @IHSEViews

Dag Kolsrud
Posts: 2
Joined: Mon Jul 17, 2017 3:49 am

Re: Import eqonometric equations

Postby Dag Kolsrud » Tue Jul 25, 2017 12:56 am

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?

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

Re: Import eqonometric equations

Postby EViews Gareth » Tue Jul 25, 2017 5:41 am

Yes.
Follow us on Twitter @IHSEViews


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 5 guests