楼主: ash-abm-azj
14509 15

[编程问题求助] 测算企业全要素生产率,问用LP方法的话stata命令应该如何编写 [推广有奖]

11
soulsi 发表于 2019-9-1 10:56:46
美味的杏子 发表于 2019-2-27 19:48
同问呀,这是什么意思
可以参考Petrin的Production function estimation in Stata using inputs to control for unobservables(2004)

i(varname) specifies the variable that contains the unit to which the observation belongs. You can specify the i() option the first time you estimate, or you can use the iis command to set i() beforehand. Note that it is not necessary to specify i() if the data has been previously tsset or if iis has been previously specified. In these cases, the group variable is taken from the previous setting. See [XT] xt.

比如用工业企业数据库来计算TFP的话,stkcd就可以是企业id的变量名。

12
jiang01 发表于 2019-10-10 21:20:49
月上蟾 发表于 2018-1-24 17:41
这种情况说明数据里面某年中或者所有年份中有企业被重复记录了,假设你用的是firm_id作为除了年份之外面板 ...
我也遇到这个问题,可是我明明已经删除重复值了,还是出现这种情况,并且提示r(451)。实在不是很明白,还望大神指点一下

13
zhuokongfu 发表于 2019-11-9 21:31:25
mxh1995mxh 发表于 2018-9-8 20:20
您好,请问知道 i(stkcd)是什么变量了吗?
感觉像是csmar库里的证券代码

14
quanjuzhuang 发表于 2020-3-30 18:49:56
jiang01 发表于 2019-10-10 21:20
我也遇到这个问题,可是我明明已经删除重复值了,还是出现这种情况,并且提示r(451)。实在不是很明白,还 ...
我也遇到过类似问题,后来是这么处理的如果你已经做过删除处理,那么可以考虑先设置一个
gen id=group(firm) 之后xtset year id
在做相关回归就行啦



15
amq388273 发表于 2020-12-19 08:51:01
请问投资怎么计算呢,就是在stata里面用什么代码

16
浅水鱼也要毕业 发表于 2024-6-4 19:12:38
weiqiulizui 发表于 2017-4-13 21:38
你好,请教一下,那个i(stkcd)是什么变量呢?
应该是股票代码

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-27 06:28