Bootstrap (default) Bootstrap function for the non-parametric and the nearest neighbor methods
boot_default(func, Y, Y_pos, X, X_std, control, wgt, n.quant, lambda,
sigma, grp.size, n.boot, quick)
a function for weights calculation (nn / non_parm).
the original outcome.
outcome after exponential transformation (if needed).
the original X matrix.
X matrix after standardization.
numeric data frame or matrix of factors to control for. these are factors that we can't consider while looking for the optimal intervention (e.g. race).
an optional vector of weights.
number of quantiles to use when calculating CDF distance.
the lagrange multiplier. also known as the shadow price of an intervention.
distance penalty for the nearest-neighbors method.
for the nearest-neighbors method; if the number of examples in each
control group is smaller than grp.size, performs weight adjustment
using wgt_adjust
. else,
calculate weights seperatly for each control group.
number of bootstrap replications to use for the standard errors / confidence intervals calculation.
logical. if TRUE, returns only \(E(X | I=1) - E(X | I=0)\) as an estimate.
this estimate is used by optint_by_group
.
a list - the output from the function 'boot()'.