Power function estimation in Eviews

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

Mimo
Posts: 8
Joined: Mon Mar 10, 2014 10:35 am

Power function estimation in Eviews

Postby Mimo » Tue May 06, 2014 2:45 pm

Hi masters of EViews and Statistics and Econometrics,

I am replicating some forecasting models. The one i am dealing with now is: Y=17139*x^-1.093
How can i estimate the same equation on Eviews. As it is a power function, apart from y and x variables to upload on eviews, how can i make sure that i define the constant=17139 and the exponent -1,093, so that the estimation recognizes my formula then?

Thanks a lot!
p.s. with regression analysis on excel, i found out that the residuals are not randomly distributed, i.e. strong autocorrelation, which might indicated that the model is not an appropriate one. In order to run more analysis, i would like to do all this with eviews, so that i can get more feedback and much quickly.
I would appreciate any suggestions on validating, evaluating existing forecasting models (linear, non-linear, etc.). This could be a great topic for me to read through!

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

Re: Power function estimation in Eviews

Postby EViews Gareth » Tue May 06, 2014 2:57 pm

What are you estimating? There are no unknown coefficients in that expression.

Mimo
Posts: 8
Joined: Mon Mar 10, 2014 10:35 am

Re: Power function estimation in Eviews

Postby Mimo » Tue May 06, 2014 3:15 pm

You're right!
What i mean, is how can i reproduce the same equation with Eviews? I want to estimate Y with the explanatory variable X, with the condition that i get the same coefficient and exponent, as in the original model.
I am trying to reproduce on Eviews the power function (as given above) that the authors have estimated in 2003. Like this i can run more analysis on this model an try to find any incovenience or misspecification.
I hope this makes more sense now. :roll:

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

Re: Power function estimation in Eviews

Postby EViews Gareth » Tue May 06, 2014 3:37 pm

You can only replicate it if you have exactly the same data. Assuming you do, then create a new equation and enter the specification as:

Code: Select all

Y=c(1)*X^c(2)

Mimo
Posts: 8
Joined: Mon Mar 10, 2014 10:35 am

Re: Power function estimation in Eviews

Postby Mimo » Tue May 06, 2014 4:23 pm

Thank you so much. I have almost the exact function, so i will consider this as ok.


Dependent Variable: IU_AT
Method: Least Squares
Date: 05/07/14 Time: 00:58
Sample: 1977 2000
Included observations: 24
Convergence achieved after 33 iterations
IU_AT=C(1)*GDP_CAP_AT^C(2)

Coefficient Std. Error t-Statistic Prob.

C(1) 17124.90 3611.923 4.741213 0.0001
C(2) -1.092480 0.072092 -15.15406 0.0000

R-squared 0.914266 Mean dependent var 682.9475
Adjusted R-squared 0.910369 S.D. dependent var 101.3751
S.E. of regression 30.35009 Akaike info criterion 9.743132
Sum squared resid 20264.82 Schwarz criterion 9.841303
Log likelihood -114.9176 Hannan-Quinn criter. 9.769176
Durbin-Watson stat 0.821953


And this is how the residuals look like in Excel, and Eviews. Do you see the difference and what i meant? Where am i going wrong? How could i verify that this model is a good one or has misspecifications?
Attachments
Screenshot 2014-05-07 01.21.26.png
Screenshot 2014-05-07 01.21.26.png (17.33 KiB) Viewed 9503 times
Screenshot 2014-05-07 01.09.31.png
Screenshot 2014-05-07 01.09.31.png (24.48 KiB) Viewed 9503 times

Mimo
Posts: 8
Joined: Mon Mar 10, 2014 10:35 am

Re: Power function estimation in Eviews

Postby Mimo » Tue May 06, 2014 4:25 pm

on excel:
- no randomness of residuals
- durbin-watson = 0,19

hence, i was thinking that there was a misleading model.

Did Eviews, maybe adjust something automatically from this model? Or do you still see any inconvenience in the residuals graph? Histogram attached.
Attachments
Screenshot 2014-05-07 01.29.47.png
Screenshot 2014-05-07 01.29.47.png (35.77 KiB) Viewed 9499 times

trubador
Did you use forum search?
Posts: 1520
Joined: Thu Nov 20, 2008 12:04 pm

Re: Power function estimation in Eviews

Postby trubador » Wed May 07, 2014 1:49 am

First of all, the two results are not "close". Nonlinear models are sensitive to initial conditions as well as to the changes in parameter values. And they are also susceptible to local optima. In this case, however, you can linearize the model by applying logarithmic transformation to the variables. You can then run a simple OLS and this should yield the same output for EViews and Excel.

Code: Select all

log(iu_at) = c(1) + c(2)*gdp_cap_at


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests