
Bootstrap confidence intervals for each growth model's parameters
Source:R/ensemble.R
ensemble_bootstrap_params.RdResamples the ensemble fit (see ensemble_bootstrap_ci() for the choice
between "poisson" and "residual" resampling) and, instead of (or in
addition to) the ensemble curve, collects each of the three growth
models' own parameter estimates (\(Y_0\), \(\gamma\), \(K\)) and
weight on every replicate, returning percentile confidence limits for
each. This is what the manuscript's per-segment parameter tables report.
Usage
ensemble_bootstrap_params(
fit,
method = c("poisson", "residual"),
B = 200L,
level = 0.95,
beta_fixed = 1.5
)Arguments
- fit
An
ensemble_fitobject.- method
"poisson"(default) or"residual".- B
Number of bootstrap replicates.
- level
Confidence level.
- beta_fixed
Passed to
fit_ensemble()for each replicate.