[R-sig-ME] confint.merMod(): method = "boot" throws error
Ben Bolker
bbolker at gmail.com
Thu Feb 27 02:06:55 CET 2014
Bertolt Meyer <b.meyer at ...> writes:
>
> Dear all,
>
> I am trying to obtain confidence intervals on the parameters
> of a merMod with bootstrapping. However, I
> always get the following error:
>
> > confint.merMod(mmodel.7, method = "boot", nsim = 100)
>
> Computing bootstrap confidence intervals ...
> Error in if (const(t, min(1e-08, mean(t, na.rm = TRUE)/1e+06))) { :
> Missing value where TRUE/FALSE is required
>
> However, using confint.merMod() with method = "Wald"
> on the same model works just fine:
>
[snip]
> I tried this with different models, it's always the same. Does anybody have
> an idea why it fails with method = "boot"?
>
This sounds like https://github.com/lme4/lme4/issues/158
Fixed a couple of months ago, but not yet in a released version.
If this is actually the case, you can work around it by removing
NA values from your data set ahead of time.
Ben Bolker
More information about the R-sig-mixed-models
mailing list