[ ] reuse the QR decomposition from lm in the regressions fitted in the residual bootstrap
[ ] check whether the speed gap between our comp_boot_emp function and covBS from the sandwich package is worth justifying the use of that package. Note that covBS does not return the coefficients estimates
[ ] sample rademacher weights with Rcpp in the multiplier bootstrap
[ ] sample the indices in empirical and multiplier bootstrap in the same way and try sampling the indices in a list
[x] transform the dataframe to tibble only once in comp_boot_mul
[x] generate the datasets for the empirical bootstrap "on the fly" when calling fit_reg rather than storing them in a list by calling comp_boot_emp_samples
lm
in the regressions fitted in the residual bootstrapcomp_boot_emp
function andcovBS
from thesandwich
package is worth justifying the use of that package. Note thatcovBS
does not return the coefficients estimatescomp_boot_mul_wgt
, changeif
statement toswitch
comp_boot_mul
fit_reg
rather than storing them in a list by callingcomp_boot_emp_samples