wyy19860530 发表于 2009-7-12 00:06 
非常感谢您的回复
我现在程序时这样(修改了一些数据)
// input the data of 1959
clear
input year cost k l e m pk pl pe pm
1959 358.435 .06185 .27303 .04563 .61948 1.30758 1.7343 1.36756 1.30774
end
......
// inputing the coefficient matrix delta
clear
input c1 c2 c3 c4
0.0298704 0.0000221 -0.0082035 0.021689
0.0000221 0.0748772 -0.0032119 -0.0716874
-0.0082035 -0.0032119 0.029383 -0.0179676
0.021689 -0.0716874 -0.0179676 0.111344
end
mkmat c1-c4, matrix(delta)
matrix list delta
......
这两部分的数据你不是已经有了吗?应该无需手动input啊?!容易犯错。
// data of 1959
use ..., clear
keep if year == 1959
...
// input coefficient matrix delta
use ..., clear
// 模型估计
matrix delta = e(??)
...
...