简体   繁体   English

EViews:如何通过 OLS 估计更复杂的回归 model?

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

For example I estimated by OLS the following model:例如我通过 OLS 估计了以下 model:

在此处输入图像描述

using an Eviews program file with code:使用带有代码的 Eviews 程序文件:

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

However, I have to now estimate this model:但是,我现在必须估计这个 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 EViews 允许您将回归以方程形式表示,如

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.但是costs|kwh,pl,pk,pf在 EViews 中没有任何意义。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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