Does anyone know how to bootstrap a linear mixed-effect model constructed by lme function (nlme package)?
Half year ago I was able to do that by "bootstrap" function from "lmeresampler" package, but it doesn't currently run with the same data and code. What happened to these packages?
mod<-lme(PC1~SA+Y+CMIave+MATave,
random=~1|PLOT_ID,data)
mixed.bootmod<-lmeresampler::bootstrap(mod,function(.)fixef(.),type="parametric",B=1000)
#This doesn't run, showing an error that
> "some bootstrap runs failed", producing NAs
#However, lmer works
mod1<-lmer(PC1~SA+Y+CMIave+MATave+(1|PLOT_ID),data)
mixed.bootmod<-bootMer(mod,function(.)fixef(.),nsim=1000)
mixed.bootmod<-lmeresampler::bootstrap(mod,function(.)fixef(.),type="parametric",B=1000)