non-linear models

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

carlacoga325
Posts: 2
Joined: Sun Apr 12, 2009 5:26 pm

non-linear models

Postby carlacoga325 » Sun Apr 12, 2009 5:53 pm

hi im working on the relationship between inflation and unemployment to explain the non-linear models topic. I want to use a regression from eveiws but i dont know how to do a polinomial regression starting from the data or if it is necesary to express the ecuation in a linear form first?
Also, if i start with a lineal regression is there some test to identify whether a non linear regression would be more adequate or is the scatter analysis sufficient?
thnx!

startz
Non-normality and collinearity are NOT problems!
Posts: 3797
Joined: Wed Sep 17, 2008 2:25 pm

Re: non-linear models

Postby startz » Sun Apr 12, 2009 6:16 pm

hi im working on the relationship between inflation and unemployment to explain the non-linear models topic. I want to use a regression from eveiws but i dont know how to do a polinomial regression starting from the data or if it is necesary to express the ecuation in a linear form first?
Also, if i start with a lineal regression is there some test to identify whether a non linear regression would be more adequate or is the scatter analysis sufficient?
thnx!
A polynomial regression is easy

Code: Select all

ls y c x x^2 x^3 x^4
You can always test if the coefficients on the higher order terms are jointly significant.

carlacoga325
Posts: 2
Joined: Sun Apr 12, 2009 5:26 pm

Re: non-linear models

Postby carlacoga325 » Mon Apr 13, 2009 1:04 pm

thanx i did that and it worked, im only having trouble cuz it accepts the expression ln but not log...so it wont accept the expression y =(-0.7)ln(x) + 2.5872 and also for example when i put there the expression y =(2356.1)x^2 - (165.37)x + 7.6965 it doesnt do it becuause of things like "= is not defined".

thank u so much for your help :D

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

Re: non-linear models

Postby EViews Gareth » Mon Apr 13, 2009 1:44 pm

You might want to rephrase that question so that it makes sense.

startz
Non-normality and collinearity are NOT problems!
Posts: 3797
Joined: Wed Sep 17, 2008 2:25 pm

Re: non-linear models

Postby startz » Mon Apr 13, 2009 3:35 pm

I can't understand what you're doing. (And if Gareth can't understand, you're really unclear. :cry: ) Perhaps you can explain more slowly, posting exactly what you've done and what you are hoping to accomplish.

samijo
Posts: 36
Joined: Thu Sep 18, 2008 12:15 pm
Location: CO. USA

Re: non-linear models

Postby samijo » Mon Apr 13, 2009 10:18 pm

I guess you need to use the multiplication sigh so the expression looks like y =(-0.7)*ln(x) + 2.5872.
So in the command line you might type
ls y c ln(x)
ls y c x x^2
I don't find any problem with the ln and log function, however, you should notice that log(x) and ln(x) give the natural log. In order to get the log to the base 10 you need to use log10(x).


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests