Learn R Programming

parameters (version 0.3.0)

model_bootstrap: Model bootstrapping

Description

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

Usage

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

parameters_bootstrap, model_simulate, parameters_simulate

Examples

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

Run the code above in your browser using DataLab