bootstrap_model: refit model with bootstrapped data set

View source: R/bootstrap_model.R

bootstrap_modelR Documentation

refit model with bootstrapped data set

Description

refit model with bootstrapped data set

Usage

bootstrap_model(model, dat, N, useparallel = TRUE, allcores = FALSE)

Arguments

model

a model fit from lme4

dat

the data set for the fit (typically a data.frame)

N

the number of (re)samples to take

useparallel

use the doParallel package?

allcores

should all available cores be used (which might slow down any activity other than R substantially). If FALSE (default), all but one core are assigned to R.

Value

a list with model fits

Examples

library(lme4)
(fm1 <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy))


gobbios/cfp documentation built on April 11, 2022, 2:22 a.m.