Skip to content

Nested fixed factors in glmer: Error in mer_finalize(ans) : Downdated X'X is not positive definite, 1.

1 message · Rolf Turner

#
Perhaps I am just obtuse (there are those who would say there is
no "perhaps" about it) but it seems to me that nesting of fixed effects
makes no sense.

In the example given below you have in effect a ***single*** factor
with six levels: a.1, a.2, b.3, b.4, c.5, c.6.  This really means that
you just have the second "nested" factor with levels 1, 2, 3, 4, 5, 6.
So just supply the second factor to the formula in the call to glmer()
and forget about the first factor entirely.  It is redundant when the
second factor is supplied.

You *can* use the formula y ~ f1/f2 or equivalently y ~ f1 + f1:f2
but you'll find that you wind up getting 12 coefficient estimates, six
of which are "NA".  The values of the six non-NA coefficients will
be identical with values of the six coefficient estimate that you get
from y ~ f2.

     cheers,

         Rolf Turner
On 03/01/2013 03:27 AM, PALACIO BLASCO, SARA wrote: