Estimates population p_value and consumption using bootstrap resampling of
final weights. Parallel execution is supported via the future /
furrr ecosystem when parallel = TRUE.
Each iteration delegates to bootstrap_single_iteration so that
the sequential and parallel code paths share a single implementation.
bootstrap_p_values(
processed_simulation_data,
n_bootstrap = 1000,
oxycal = 13560,
sample_size = NULL,
parallel = FALSE,
n_cores = NULL,
upper_p = 1,
verbose = FALSE,
store_predicted_weights = TRUE
)Named list with:
Valid p_value estimates (NAs removed)
Valid consumption estimates
Valid predicted weights, or NULL
Diagnostics
Execution metadata
Complete processed simulation data (must
contain simulation_settings$initial_weight and
simulation_settings$observed_weights)
Number of bootstrap iterations, default 1000
Oxycalorific coefficient (J/g O2), default 13560
Sample size per iteration; NULL = same as data
Logical; use parallel processing? default FALSE
Number of cores for parallel processing (NULL =
auto-detect via future::availableCores())
Logical; show progress messages? default FALSE
Logical; store predicted final weights?
default TRUE
bootstrap_single_iteration, fit_fb4_bootstrap