Bootstrap a statistical model n times to return a data frame of estimates.

bootstrap_model(model, iterations = 1000, verbose = FALSE, ...)

Arguments

model

Statistical model.

iterations

The number of draws to simulate/bootstrap.

verbose

Show or hide possible warnings and messages.

...

Arguments passed to or from other methods.

Value

A data frame.

See also

Examples

# \donttest{ model <- lm(mpg ~ wt + cyl, data = mtcars) head(bootstrap_model(model))
#> (Intercept) wt cyl #> 1 38.32019 -3.268411 -1.387621 #> 2 38.59563 -3.205922 -1.295143 #> 3 39.07240 -2.661856 -1.735625 #> 4 39.38798 -3.009443 -1.501663 #> 5 35.80019 -2.238742 -1.375777 #> 6 38.98068 -2.394357 -1.834231
# }