全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
2130 0
2010-12-30
想编辑一个小程序拟合lnrrq与lnP之间的关系,前者是左手变量,后者是右手变量,程序为:
========
program nlces
syntax varlist(min=2 max=2) [aw fw iw] if, at(name)
local lnrrq:word 1 of 'varlist'
local lnP:word 2 of 'varlist'
tempname b0 rho
scalar 'b0'='at'[1,10]
scalar 'rho'='at'[-3,10]
replace 'lnrrq'='b0'+'rho'*lnP 'if
end
============
运行:nl ces: lnrrq lnP

我是直接把程序copy到stata中,然后再运行,是否正确?应该如何运行程序?
此外 输出结果显示错误:
“nlces returned 198
verify that nlces is a substitutable expression program
and that you have specified all options that it requires”
是什么意思呀??(我的数据是非平衡面板数据)
请高人指点下,谢谢
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群