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!
non-linear models
Moderators: EViews Gareth, EViews Moderator
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3797
- Joined: Wed Sep 17, 2008 2:25 pm
Re: non-linear models
A polynomial regression is easyhi 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!
Code: Select all
ls y c x x^2 x^3 x^4-
carlacoga325
- Posts: 2
- Joined: Sun Apr 12, 2009 5:26 pm
Re: non-linear models
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
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
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
I can't understand what you're doing. (And if Gareth can't understand, you're really unclear.
) Perhaps you can explain more slowly, posting exactly what you've done and what you are hoping to accomplish.
Re: non-linear models
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).
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).
Who is online
Users browsing this forum: No registered users and 2 guests
