Skip to content
Prev 151143 / 398498 Next

glht after lmer with "$S4class-" and "missing model.matrix-" errors

You have a mismatch between glht and the model fit by lmer.  A model
fit by lmer is an object of an S4 class (that's what the "4" in the
package name "lme4" is to indicate).  The glht function, or possibly a
default method for that generic, is treating the model as an S3 class
object.

Also, you should pay attention to that warning about the estimate of
the variance-covariance matrix of the random effects being singular.
You need to reconsider the model before trying to do multiple
comparisons.

On Fri, Jul 25, 2008 at 4:27 AM, Anna Radtke
<annaradtke2309 at googlemail.com> wrote: