Thanks very much, I'm a starter of gretl and know little about
scripts. I will try, thanks!
I,m using 1.8.1.
2009/8/8, Allin Cottrell <cottrell(a)wfu.edu>:
On Fri, 7 Aug 2009, Zhenzeng Young wrote:
> When i was estimation a simultaneous equation model, a error massage
> appeared: You must include a constant in this sort of model.
> Could anybody be kindly tell me the reason and how to solve the problem?
> Thanks!
> PS. system setting:
> # set the model up as a system
>
> system name="all"
> equation pf 0 gdpr pcr kaopen
> equation pcr 0 pf gdp topen fdi efw
> endog pf pcr
> end system
>
> # and estimate it in various ways
> estimate "all" method=ols
In the script in your email, the "equation" and "endog" lines
started with funny non-ASCII symbols. I'm not sure if that's the
issue. But your equations contain "0" (= the constant) OK.
I tried mocking up your example thus
<script>
nulldata 100
series pf = normal()
series gdp = normal()
series gdpr = normal()
series pcr = normal()
series kaopen = normal()
series topen = normal()
series fdi = normal()
series efw = normal()
system name="all"
equation pf 0 gdpr pcr kaopen
equation pcr 0 pf gdp topen fdi efw
endog pf pcr
end system
estimate "all" method=ols
</script>
This script ran without any error. What version of gretl are you
using?
Allin Cottrell
_______________________________________________
Gretl-users mailing list
Gretl-users(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users
--
从我的移动设备发送
YANG Zhenzeng
Dep. of international economics and trade,
Economics school,
Tianjin University of Finance and Economics, PRC.