Resamples items, or whole clusters of items when a cluster column is present, and recomputes a user-supplied statistic on each replicate. Use this when the quantity of interest is not a mean and the analytic standard errors elsewhere in the package do not apply: medians, quantiles, pass rates above a threshold, or any custom score aggregation.
Usage
ev_bootstrap(
data,
model = NULL,
statistic = mean,
R = 2000,
level = 0.95,
type = c("percentile", "basic"),
seed = NULL,
...
)Arguments
- data
An
evaluatellm_evalobject fromas_eval(), a data frame, or a bare numeric or logical vector of scores.- model
Which model to score. Optional when the data holds only one.
- statistic
A function taking a numeric vector of item scores and returning a single number. Default
mean().- R
Number of bootstrap replicates. Default
2000.- level
Confidence level. Default
0.95.- type
Interval type,
"percentile"(default) or"basic".- seed
Optional integer seed for reproducibility.
- ...
Passed to
as_eval()whendatais a plain data frame.
Value
An evaluatellm_bootstrap object with elements estimate, se,
conf_low, conf_high, replicates, R, type, and level.
Details
Resampling clusters rather than items preserves the dependence structure, so
the resulting interval carries the same protection as ev_cluster().
See also
Other single model:
ev_cluster(),
ev_icc(),
ev_resample(),
ev_score()