Model Creation

For technical support, tips and tricks, suggestions, or any other information regarding the EViews model object.

Moderators: EViews Gareth, EViews Moderator

kleckleyj
Posts: 5
Joined: Fri Feb 04, 2011 9:35 am

Model Creation

Postby kleckleyj » Thu Feb 20, 2014 7:46 am

I want to build a series of models, with each having approximately 46 equations. In the past, I would do this equation by equation. Since I use the same specification for each (with a different dependent variable), is there a way to load all 46 equations in the model in one step? For example, would it be possible to read a text file to build the model?

Thanks.

JK

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

Re: Model Creation

Postby EViews Gareth » Thu Feb 20, 2014 9:20 am

Sure. If you right click on the Text view of the model, it gives you the option to insert a text file from disk.
Follow us on Twitter @IHSEViews

kleckleyj
Posts: 5
Joined: Fri Feb 04, 2011 9:35 am

Re: Model Creation

Postby kleckleyj » Thu Feb 20, 2014 9:43 am

maybe I'm doing this in the wrong place.

New object
Model
Then I right click and a "model source edit" box appears
I paste the specs

log(lfesaq_001) c log(lfesaq) log(uslf/uslf(-1))
log(lfesaq_002) c log(lfesaq) log(uslf/uslf(-1))

Hit OK and get

Syntax error in "log(lfesaq_001) c log(lfesaq) log(uslf/uslf(-1))"
Syntax error in "log(lfesaq_002) c log(lfesaq) log(uslf/uslf(-1))"

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

Re: Model Creation

Postby EViews Gareth » Thu Feb 20, 2014 9:58 am

You have no coefficients in those equations.

The model object cannot estimate equations. You have to use equation objects to do that, or specify the equation results explicitly - i.e. text along the lines of:

Code: Select all

y=0.5+2*x+3*w
Follow us on Twitter @IHSEViews

kleckleyj
Posts: 5
Joined: Fri Feb 04, 2011 9:35 am

Re: Model Creation

Postby kleckleyj » Thu Feb 20, 2014 11:25 am

I understand. I use that to insert identities but was hoping something might exist to input structure and then estimate.

Is it possible to use the command line to estimate and save an equation. It seems that I can perform a couple of the steps, but I could not figure out how to same and name the equation.

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

Re: Model Creation

Postby EViews Gareth » Thu Feb 20, 2014 11:39 am

Code: Select all

equation eq01.ls y c x
Follow us on Twitter @IHSEViews

kleckleyj
Posts: 5
Joined: Fri Feb 04, 2011 9:35 am

Re: Model Creation

Postby kleckleyj » Thu Feb 20, 2014 11:51 am

That will work, but I have a couple of questions.

How many lines can I insert at once?
If I am limited, can I turn that into a macro?...If so, where I find the programming language. I did not see it on the help stuff.

Thanks.

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

Re: Model Creation

Postby EViews Gareth » Thu Feb 20, 2014 11:56 am

Follow us on Twitter @IHSEViews

kleckleyj
Posts: 5
Joined: Fri Feb 04, 2011 9:35 am

Re: Model Creation

Postby kleckleyj » Thu Feb 20, 2014 12:00 pm

Thank you very much. Have a great day.

JK


Return to “Models”

Who is online

Users browsing this forum: No registered users and 22 guests