Skip to contents

Returns the bootstrap replicates from bootstrap_parameters in long format, one row per replicate and parameter (including the implied steady state). Failed replicates are dropped.

Usage

# S3 method for class 'litfit_bootstrap'
tidy(x, ...)

Arguments

x

a litfit_bootstrap object

...

unused

Value

A data.frame with columns replicate, term and value.

Examples

fit <- fit_litter(
  time = pineneedles$Year, mass.remaining = pineneedles$Mass.remaining,
  model = "neg.exp", iters = 50, quiet = TRUE
)
boot <- bootstrap_parameters(fit, nboot = 50)
#> Warning: 2 of 50 bootstrap replicates failed and are recorded as NA
head(tidy(boot))
#>   replicate term     value
#> 1         1    k 0.2743558
#> 2         2    k 0.2637691
#> 3         3    k 0.2846005
#> 4         4    k 0.2625794
#> 5         5    k 0.2846005
#> 6         6    k 0.2804885