View source: R/bootstrap_model.R
bootstrap_model | R Documentation |
refit model with bootstrapped data set
bootstrap_model(model, dat, N, useparallel = TRUE, allcores = FALSE)
model |
a model fit from |
dat |
the data set for the fit (typically a |
N |
the number of (re)samples to take |
useparallel |
use the |
allcores |
should all available cores be used (which might slow down any activity other than R substantially). If |
a list with model fits
library(lme4) (fm1 <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.