Skip to content
Prev 10205 / 20628 Next

fitting glmer after using doFit=FALSE

Samuel Bussmann <bussmann.1 at ...> writes:
Based on a look inside the lmer function, which has the following
snippet:

    if (doFit) {
        ans <- do.call(lmer_finalize, ans)
        ans at call <- mc
    }

It looks like this is what you want:

library("lme4.0") ## this is equivalent to CRAN-lme4
tmp <- lmer(Reaction ~ Days + (Days|Subject), sleepstudy, doFit=FALSE)
ans <- do.call(lme4.0:::lmer_finalize, tmp)

I would also encourage you to try the development version
of lme4, which you can install from github:

library("devtools")
install_github("lme4","lme4")

   It offers finer control of the details of the construction
and fitting process (help("modular"))

  Ben Bolker