全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
18924 10
2020-04-27
按照stata连享会的推送计算tfp的时候用prodest命令结果报错了(第一行复制,第二行手打,均报错)。 QQ图片20200427091534.png QQ图片20200427092039.png


数据:https://gitee.com/arlionn/data/blob/master/data01/TFP_data.dta

代码是直接复制的:
xtset id year
prodest log_y, method(lp) free(log_lab1 log_lab2) proxy(log_materials) state(log_k) valueadded  id(id) t(year) reps(50)
predict lp, resid

软件用的stata15se和stata14se

麻烦各位帮我看一下哪里出错了,非常感谢!!!!


二维码

扫码加我 拉你入群

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

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

全部回复
2020-4-30 10:33:13
不管是stata14还是15都存在这个问题,然后我下了16但是安装不了,显示“无法打开此安装包。请确认该程序包存在,并且您有权限访问它”。
二维码

扫码加我 拉你入群

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

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

2020-9-18 15:19:58
您好,请问两种劳动表示什么?
二维码

扫码加我 拉你入群

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

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

2020-11-18 21:53:19
老哥我一样的,真的是奇怪的问题
二维码

扫码加我 拉你入群

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

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

2021-7-2 15:12:41
我也是这样,你后来弄好了吗
二维码

扫码加我 拉你入群

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

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

2021-7-2 19:48:09
测试没有问题

. xtset id year
       panel variable:  id (unbalanced)
        time variable:  year, 1996 to 2006, but with gaps
                delta:  1 unit

. prodest log_y, method(lp) free(log_lab1 log_lab2) proxy(log_materials) state(log_k) valueadded  id(id) t(ye
> ar) reps(50)
..(tfp)
.(tfp)
.(tfp)
.(tfp)
.(tfp)
.(tfp)
.(tfp)
.(tfp)
10(tfp)
.(tfp)
.(tfp)
.(tfp)
.(tfp)
.(tfp)
.(tfp)
.(tfp)
.(tfp)
.(tfp)
20(tfp)
.(tfp)
.(tfp)
.(tfp)
.(tfp)
.(tfp)
.(tfp)
.(tfp)
.(tfp)
.(tfp)
30(tfp)
.(tfp)
.(tfp)
.(tfp)
.(tfp)
.(tfp)
.(tfp)
.(tfp)
.(tfp)
.(tfp)
40(tfp)
.(tfp)
.(tfp)
.(tfp)
.(tfp)
.(tfp)
.(tfp)
.(tfp)
.(tfp)
.(tfp)
50(tfp)



lp productivity estimator                       Cobb-Douglas PF

Dependent variable: value added                 Number of obs      =      2544
Group variable (id): id                         Number of groups   =       497
Time variable (t): year
                                                Obs per group: min =         1
                                                               avg =       5.1
                                                               max =        11

------------------------------------------------------------------------------
       log_y |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
    log_lab1 |   .2011151   .0274382     7.33   0.000     .1473372     .254893
    log_lab2 |   .1696222   .0242319     7.00   0.000     .1221284    .2171159
       log_k |   .1201319   .0387102     3.10   0.002     .0442614    .1960025
------------------------------------------------------------------------------
Wald test on Constant returns to scale: Chi2 = 67.01
                                          p = (0.00)

. predict lp, resid
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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