Learn R Programming

parameters (version 0.4.0)

bootstrap_model: Model bootstrapping

Description

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

Usage

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

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

Arguments

model

Statistical model.

iterations

The number of draws to simulate/bootstrap.

verbose

Hide possible refit messages.

...

Arguments passed to or from other methods.

Value

A data frame.

See Also

bootstrap_parameters, simulate_model, simulate_parameters

Examples

Run this code
# NOT RUN {
model <- lm(mpg ~ wt + cyl, data = mtcars)
head(bootstrap_model(model))
# }

Run the code above in your browser using DataLab