Skip to content
Prev 1380 / 20628 Next

models with no fixed effects

On Thu, Sep 11, 2008 at 8:03 AM, Daniel Farewell
<farewelld at cardiff.ac.uk> wrote:
Admittedly that is a rather obscure error message.  It is related to
the fact, apparently not verified, that we should have p, the number
of fixed-effects, greater than zero.

I should definitely add a check on p to the validate method.  (In some
ways I'm surprised that it got as far as mer_finalize before kicking
an error).  I suppose that p = 0 could be allowed and I could add some
conditional code in the appropriate places but does it really make
sense to have p = 0?  The random effects are defined to have mean
zero.  If you have p = 0 that means that E[Y] = 0.  I would have
difficulty imagining when I would want to make that restriction.

Let me make this offer - if someone could suggest circumstances in
which such a model would make sense, I will add the appropriate
conditional code to allow for p = 0. For the time being I will just
add a requirement of  p >  0 to the validate method.