Summarise a bootstrap distribution of parameters from a litfit object
Source:R/bootstrap.R
summary.litfit_bootstrap.RdSummarise a bootstrap distribution of parameters from a litfit object
Arguments
- object
a
litfit_bootstrapobject frombootstrap_parameters- probs
quantiles to report (default gives a 95 percent interval and the median)
- ...
unused
Value
a matrix with one row per parameter (plus steady state) giving the mean and the requested quantiles of the bootstrap distribution, ignoring failed replicates
Examples
fit <- fit_litter(
time = pineneedles$Year,
mass.remaining = pineneedles$Mass.remaining, model = "neg.exp", iters = 100
)
#> Number of successful fits: 100 out of 100
boot1 <- bootstrap_parameters(fit, nboot = 200)
#> Warning: 2 of 200 bootstrap replicates failed and are recorded as NA
summary(boot1)
#> mean 2.5% 50% 97.5%
#> k 0.2790202 0.2359009 0.2805891 0.3132986
#> steady_state 3.6048157 3.1918633 3.5639307 4.2392797