File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1919cap program drop boottest
2020program 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
You can’t perform that action at this time.
0 commit comments