全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 统计软件培训班VIP答疑区
2781 7
2012-09-24
xtwest lnadd lnfadd, constant trend ///
> lags(1) leads(1) lrwindow(3) bootstrap(300)        

Bootstrapping critical values under H0l.0.d:  operator invalid
r(198);

end of do-file

r(198);
查询说是语法错误,无法执行命令
注:原样本数14个行业,跨度12 年,做面板协整分析
语法错误在哪里呢?  


二维码

扫码加我 拉你入群

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

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

全部回复
2012-9-24 13:47:31
课件中的例子能否顺利执行?
如果能得话,你需要对比一下你的数据和我给的例子有何差异。
如果还是不行,请先输入 set trace on,然后再执行上述命令,把错误结果贴出来,红字的部分用红色标记出来。
二维码

扫码加我 拉你入群

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

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

2012-9-25 10:30:59
    qui reg d.`yvar' `cons' `tren' L(-`currlead'/`currlag')D.(`xvars') in `firstob'/`lastob', nocons
      }
    - matrix b = e(b)
    - qui matrix score `e' = b in `firstob'/`lastob', replace
    = qui matrix score __00000G = b in 1/12, replace
    - qui replace `e' = d.`yvar' - `e' in `firstob'/`lastob'
    = qui replace __00000G = d.lnexch - __00000G in 1/12
    - foreach x of varlist `xvars' {
    = foreach x of varlist lnfdloc {
    - forvalues lag = 0/`currlag' {
    = forvalues lag = 0/1 {
    - qui replace `__bL`lag'D`x'' = _b[l.`lag'.d.`x'] in `firstob'/`lastob'
    = qui replace __00000C = _b[l.0.d.lnfdloc] in 1/12
l.0.d:  operator invalid

不知道是否样本数不够?不能做BOOTSTRAP?
二维码

扫码加我 拉你入群

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

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

2012-9-25 10:35:45
xtwest lnadd lnfadd, constant trend ///
>        lags(1) leads(1) lrwindow(3) bootstrap(1000)   

Bootstrapping critical values under H0l.0.d:  operator invalid
前天是这个红色地方错误,如果不用bootstrap,可以执行命令,但是结果感觉不满意,所以尝试这个自抽样命令。教程里面讲解的数据没有,无法引用
二维码

扫码加我 拉你入群

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

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

2012-9-25 16:43:21
我用课件中的数据做了,没有问题,看来是你的数据有问题。

.
which xtwest
D:\stata11\ado\plus\x\xtwest.ado
*! xtwest 1.5 1Jul2010
*! Damiaan Persyn, LICOS centre for Development and Economic Performance
www.econ.kuleuven.be/licos
*! Copyright Damiaan Persyn 2007-2008.

.      use xtwest_data.dta, clear
.      tsset country year
       panel variable:  country (strongly balanced)
        time variable:  year, 1 to 32
                delta:  1 unit

.     xtwest loghex loggdp, constant trend ///
>            lags(1) leads(1) lrwindow(3) bootstrap(50)
Bootstrapping critical values under H0..........
Calculating Westerlund ECM panel cointegration tests..........
Results for H0: no cointegration
With 20 series and 1 covariate
----------------------------------------------------------------+
Statistic |   Value   |  Z-value  |  P-value  | Robust P-value |
-----------+-----------+-----------+-----------+----------------|
     Gt    |   -2.681  |   -1.731  |   0.042   |      0.060     |
     Ga    |  -10.927  |    0.713  |   0.762   |      0.100     |
     Pt    |  -12.035  |   -2.959  |   0.002   |      0.020     |
     Pa    |  -10.524  |   -1.160  |   0.123   |      0.040     |
----------------------------------------------------------------+
二维码

扫码加我 拉你入群

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

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

2012-9-25 22:47:00
用我的数据验证,但是不知道问题出现在哪里?如果去掉bootstrap(1000)的命令,改用noisily,或者去掉这个,可以计算,然而结果不显著。整个样本可以在面板回归检验中得到很清晰的参数估计结果,而且为了得到稳健性结果,在面板回归中使用bootstrap 命令也可以得到结果。就是面板协整分析中bootstrap出问题
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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