Bootstraping for linear mixed models
Bootstraping tools for linear mixed-models using a consistent interface
boot_lme(object, f = NULL, R = 999, psim = 1, cores = 1L, ...)
object |
|
f |
function to be applied (and bootstrapped), default coef (gls) or fixef (lme) |
R |
number of bootstrap samples, default 999 |
psim |
simulation level for vector of fixed parameters either for |
cores |
number of cores to use for parallel computation |
... |
additional arguments to be passed to function |
This function is inspired by Boot
, which does not
seem to work with ‘gls’ or ‘lme’ objects. This function makes multiple copies
of the original data, so it can be very hungry in terms of memory use, but
I do not believe this to be a big problem given the models we typically fit.
require(nlme) require(car) data(Orange) fm1 <- lme(circumference ~ age, random = ~ 1 | Tree, data = Orange) fm1.bt <- boot_lme(fm1, R = 50) hist(fm1.bt)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.