简体   繁体   中英

EViews: How to estimate by OLS a more complex regression model?

For example I estimated by OLS the following model:

在此处输入图像描述

using an Eviews program file with code:

equation e1.ls log(cons) c log(sw) log(nsw) log(inc)

However, I have to now estimate this model:

在此处输入图像描述

But I am not sure how to go about writing the code. I tried typing:

equation e1.ls log(costs|kwh,pl,pk,pf) c log(kwh) log(pl) log(pk) log(pf) (log(kwh))^2

However, the first and last terms do not work and I'm not sure how to do it. I would appreciate any help, thank you!

EViews allows you to put the regression in equation form, as in

equation e1.ls log(costs)= c(1)*log(kwh)+ c(2)*log(pl)+ c(3)*log(pk) + c(4)*log(pf) + c(5)*(log(kwh))^2

but costs|kwh,pl,pk,pf doesn't mean anything in EViews.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM