全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
10759 12
2014-01-11
救命啊,总是出现an error occurred when bootstrap executed opreg具体的情况如下的,如果没有加入t这个变量的话,就可以运算出来,但是结果全部都是1的。。。加入了cvars(t) 就会出现
an error occurred when bootstrap executed opreg 。。不知道是为什么,求各位达人解答


. opreg  lny ,exit(exit) state(lnk)proxy(lni)free(lnl)
(running opreg on estimation sample)

Bootstrap replications (50)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5
..................................................    50


Olley-Pakes productivity estimator              Number of obs      =       816
Group variable (i): id                          Number of groups   =       204
Time variable (t): year
                                                Obs per group: min =         4
                                                               avg =       4.0
                                                               max =         4

                                    (Replications based on 204 clusters in id)
------------------------------------------------------------------------------
             |   Observed   Bootstrap                         Normal-based
             |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
lny          |
         lnk |   .3610104   .0706505     5.11   0.000     .2225378    .4994829
         lnl |   .3271804   .0342377     9.56   0.000     .2600757     .394285
------------------------------------------------------------------------------
State:         lnk
Free:          lnl
Control:      
Proxy:         lni

. est store OP_all

. opreg  lny ,exit(exit) state(lnk)proxy(lni)free(lnl)cvars(t)
(running opreg on estimation sample)
t:  may not use time-series operators on string variables
an error occurred when bootstrap executed opreg
r(109);

. destring t ,replace
t has all characters numeric; replaced as byte

. opreg  lny ,exit(exit) state(lnk)proxy(lni)free(lnl)cvars(t)
(running opreg on estimation sample)
an error occurred when bootstrap executed opreg
r(2000);

. destring age ,replace
age has all characters numeric; replaced as byte

. opreg  lny ,exit(exit) state(lnk age)proxy(lni)free(lnl)cvars(t)
(running opreg on estimation sample)
an error occurred when bootstrap executed opreg
r(2000);

. opreg  lny ,exit(exit) state(lnk age)proxy(lni)free(lnl)cvars(t)vce(bootstrap, seed(1357) rep(5))
(running opreg on estimation sample)
an error occurred when bootstrap executed opreg
r(2000);

. drop _est_OP_all

. opreg  lny ,exit(exit) state(lnk age)proxy(lni)free(lnl)cvars(t)vce(bootstrap, seed(1357) rep(5))
(running opreg on estimation sample)
an error occurred when bootstrap executed opreg
r(2000);

. rename lni invest

. opreg  lny ,exit(exit) state(lnk age)proxy(invest)free(lnl)cvars(t)vce(bootstrap, seed(1357) rep(5))
(running opreg on estimation sample)
an error occurred when bootstrap executed opreg
r(2000);

.

文章后附有原始的文件,求论坛的高手们解答!!
文件位置在:https://bbs.pinggu.org/z_liuliang.php?aid=1152560


附件列表

I0916c.xls

大小:24.5 KB

 马上下载

二维码

扫码加我 拉你入群

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

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

全部回复
2014-7-17 00:00:16
我想问一下你是怎么把你的Excel弄进stata里面的。。因为stata里面每个变量只能在一行。。但是Excel转置功能根本实现不了把不同年份的同一变量搞到同一行去。。。纠结啊。。我这个好几万企业。。正在蛋疼中。。求仁兄指教。。。
二维码

扫码加我 拉你入群

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

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

2014-10-18 15:10:47
楼主你好,我用你的数据和方法做了一下,总是出现
. opreg  lny ,exit(exit) state(lnk)proxy(lni)free(lnl)cvars(t)
(running opreg on estimation sample)
an error occurred when bootstrap executed opreg
r(2000);
请问到底是怎么回事?我的变量和你的差不多,能不能把具体stata语句发个我?
二维码

扫码加我 拉你入群

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

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

2015-3-17 21:12:03
fishandcrystle 发表于 2014-7-17 00:00
我想问一下你是怎么把你的Excel弄进stata里面的。。因为stata里面每个变量只能在一行。。但是Excel转置功能 ...
reshape
二维码

扫码加我 拉你入群

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

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

2015-3-27 10:28:30
sjslyxh 发表于 2015-3-17 21:12
reshape
恩恩,谢谢,已经搞定啦。
二维码

扫码加我 拉你入群

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

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

2016-5-19 15:17:29
fishandcrystle 发表于 2015-3-27 10:28
恩恩,谢谢,已经搞定啦。
您好,请问您是如何解决的。
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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