黃河泉 发表于 2017-6-20 16:24 
请试试
黄老师,您好。 我也出现了同样的问题,前一秒还可以用bdiff得到结果,后一秒就提示“varlist required”
- * Example generated by -dataex-. To install: ssc install dataex
- clear
- input double Herd
- 第一条命令
- bdiff,group( corp_state_owned ) model(reghdfe HIGH Herd Herd2 corp_leverage corp_size corp_cash_inflow_beginning corp_growth corp_ebit rd_ratio capital_inflow_ratio subsidys ,absorb(stkcd year ind_code province)) reps(100) detail
- Begin Time: 6 May 2020 02:22:44
- ....................................................................................................
- -Permutaion (100 times)- Test of Group (corp_state_owned 0 v.s 1) coeficients difference
- Variables | b0-b1 Freq p-value
- -------------+-------------------------------
- Herd | -6.650e+06 85 0.150
- Herd2 | 46211.248 0 0.000
- corp_lever~e | 7.032e+09 12 0.120
- corp_size | -8.414e+09 100 0.000
- corp_cash_~g | -1.088e+10 85 0.150
- corp_growth | -1.171e+08 48 0.480
- corp_ebit | -9.962e+09 93 0.070
- rd_ratio | 3.150e+10 0 0.000
- capital_in~o | -4.593e+11 59 0.410
- subsidys | 12.407 26 0.260
- _cons | 1.938e+11 0 0.000
- ---------------------------------------------
- 第二条命令
- bdiff,group(corp_state_owned) model(xtreg HIGH Herd Herd2 corp_leverage corp_size corp_cash_inflow_beginning corp_growth corp_ebit rd_ratio capital_inflow_ratio subsidys i.year,fe r) reps(100) detail
- Begin Time: 6 May 2020 02:17:43
- varlist required
- r(100);
复制代码