Abstract class of bootstrap
Abstract class of bootstrap
Output both the point estimate and the bootstrap confidence interval
new()
generalBootstrap$new()
bootstrap()
regular bootstrap
generalBootstrap$bootstrap(n_bootstrap, alpha = 0.05, ...)
n_bootstrap
number of bootstrap samples
alpha
significance level for CI
...
other passed to "run_bootstrap"
NULL
exact_bootstrap()
exact bootstrap
generalBootstrap$exact_bootstrap(n_bootstrap, alpha = 0.05, ...)
n_bootstrap
number of bootstrap samples
alpha
significance level for CI
...
other passed to "run_bootstrap"
NULL
exact_bootstrap_paper()
exact bootstrap on vdl paper
generalBootstrap$exact_bootstrap_paper(n_bootstrap, alpha = 0.05, ...)
n_bootstrap
number of bootstrap samples
alpha
significance level for CI
...
other passed to "run_bootstrap"
NULL
center_CI()
center the bootstrap CI on the point estimate
generalBootstrap$center_CI(bootCI = NULL)
bootCI
the vector of CI
NULL
scale_adjust_CI()
scale the bootstrap CI to be wider than Wald CI
generalBootstrap$scale_adjust_CI(bootCI = NULL)
bootCI
the vector of CI
NULL
penalized_CI()
bias penalized bootstrap
add abs(bias) to both sides of the bootstrap CI (wider)
generalBootstrap$penalized_CI(bootCI = NULL)
bootCI
the vector of CI
NULL
penalized_CI_half()
bias penalized bootstrap (half)
add 0.5*abs(bias) to both sides of the bootstrap CI (wider)
generalBootstrap$penalized_CI_half(bootCI = NULL)
bootCI
the vector of CI
NULL
shift2()
two bias shifted bootstrap
shift the center of CI by two times the bias
generalBootstrap$shift2(bootCI = NULL)
bootCI
the vector of CI
NULL
sigma_mse()
use the stddev of bootstrap samples, to put a Normal CI around point estimate
generalBootstrap$sigma_mse(bootCI = NULL)
bootCI
the vector of CI
CI
spread()
use the z-quantiles of bootstrap samples, to put a Normal CI around point estimate
generalBootstrap$spread(bootCI = NULL)
bootCI
the vector of CI
CI
all_boot_CI()
return all CI
generalBootstrap$all_boot_CI()
list of CI
clone()
The objects of this class are cloneable with this method.
generalBootstrap$clone(deep = FALSE)
deep
Whether to make a deep clone.