bootstrap_se {vimp} | R Documentation |
Compute bootstrap-based standard error estimates for variable importance
Description
Compute bootstrap-based standard error estimates for variable importance
Usage
bootstrap_se(
Y = NULL,
f1 = NULL,
f2 = NULL,
cluster_id = NULL,
clustered = FALSE,
type = "r_squared",
b = 1000,
boot_interval_type = "perc",
alpha = 0.05
)
Arguments
Y |
the outcome. |
f1 |
the fitted values from a flexible estimation technique
regressing Y on X. A vector of the same length as |
f2 |
the fitted values from a flexible estimation technique
regressing either (a) |
cluster_id |
vector of the same length as |
clustered |
should the bootstrap resamples be performed on clusters
rather than individual observations? Defaults to |
type |
the type of importance to compute; defaults to
|
b |
the number of bootstrap replicates (only used if |
boot_interval_type |
the type of bootstrap interval (one of |
alpha |
the level to compute the confidence interval at. Defaults to 0.05, corresponding to a 95% confidence interval. |
Value
a bootstrap-based standard error estimate