Skip to content

Commit f68acad

Browse files
committed
Made it work better after cgmreg
1 parent e0a232d commit f68acad

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

boottest.ado

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
cap program drop boottest
2020
program define boottest
2121
version 11
22-
2322
cap noi _boottest `0'
2423
local rc = _rc
2524
constraint drop `anythingh0'
@@ -156,8 +155,8 @@ program define _boottest, rclass sortpreserve
156155
di as txt _n "Overriding estimator's cluster/robust settings with " as res `"`=cond("`clustvars'"=="", "robust", "cluster(`clustvars')")'"'
157156
}
158157
else {
159-
local hasrobust = "`e(vcetype)'" == "Robust"
160158
local clustvars `e(clustvar)'
159+
local hasrobust = "`e(vcetype)'" == "Robust" | "`clustvars'" != ""
161160
}
162161

163162
local hasclust = `"`clustvars'"' != ""
@@ -194,7 +193,7 @@ program define _boottest, rclass sortpreserve
194193
local IV = "`e(instd)'`e(endogvars)'" != ""
195194
local LIML = ("`cmd'"=="ivreg2" & "`e(model)'"=="liml") | ("`cmd'"=="ivregress" & "`e(estimator)'"=="liml")| ("`cmd'"=="reghdfe" & strpos("`e(title)'", "LIML"))
196195
local WRE = `"`boottype'"'!="score" & `IV' & `reps'
197-
local small = e(df_r) != . | "`small'" != ""
196+
local small = e(df_r) != . | "`small'" != "" | e(cmd)=="cgmreg"
198197

199198
local fuller `e(fuller)' // "" if missing
200199
local K = e(kclass) // "." if missing

0 commit comments

Comments
 (0)