Bootstrap standard errors of a results table's statistics
bootstrap_se.RdThe standard error of every statistic statistics() reports, from the
per-simulation results alone. Each replicate draws the simulations with
replacement, one draw shared by every column so their joint structure is
kept, and reads the statistics from the resample counts on each column's
order, sorted once; a statistic's standard error is the sample SD
(dividing by B - 1) of its replicates values.
Arguments
- x
A numeric vector of draws or a sampled, a named list or data frame of numeric vectors of equal length, or a predictive_distribution (one row per component). A list's vectors and a distribution's components share each replicate's draw.
- percentiles
Percentiles, in percent, in
[0, 100].- replicates
Number of replicates, at least 2.
- seed
Replicate
bdraws from streambofseed.- hold_fixed
NULL, or the fixed part of each column, of the same kind asx: a vector for a vector, a list with the same names for a list, a predictive_distribution with the same components for one.- tvar_levels, sd_multiples, quantile, tvar
As for
statistics().
Value
For draws or a sampled, a named numeric vector of standard
errors. For a list, a data frame with an item column and one column
per statistic. For a predictive_distribution, its keys data frame
with one column per statistic.