Skip to content
Prev 4230 / 20628 Next

In mer_finalize(ans) : gr cannot be computed at initial par (65)

On Mon, Aug 2, 2010 at 12:18 AM, Sol Heber
<sol.heber at pg.canterbury.ac.nz> wrote:
It appears that you have the classic situation of a two-way layout
with missing cells.  This is an example of a situation where the
symbolic analysis performed by model.matrix does not detect rank
deficiency in the result.

The model with the term cross * line is equivalent to fitting a "cell
means" model which includes the interaction term cross:line but not
the main effects terms cross and line.  However, the model matrix for
cross:line will be constructed properly because it will drop the
unused levels (i.e. the missing cells) in the interaction factor.

So, try to fit with cross:line instead of cross*line.