Skip to content
Prev 16212 / 20628 Next

Mixed Models in SAS and R

Everything here is true, or at least reasonable, but not related to
the original question.

 1. I believe the original question has identified (1) a potentially
interesting question about differences between REML and ML estimation
for a poorly posed model [alternatively one could say "it's poorly
posed, I don't care how it works"] and (2) a potential
problem/bug/infelicity where lmer fails to warn of the ill-posedness _on
some platforms_. (The conversation is continuing on CrossValidated:
https://stats.stackexchange.com/questions/328712/why-does-lmer-unlike-sas-output-a-non-zero-variance-of-random-effect-if-it-is/328845
)

2. If you can figure out how to make lmer work with negative variances
without completely breaking the linear algebra, I'd be interested to
hear about it. (I don't think I can say for sure that I'd accept a pull
request -- Doug and Martin might have perfectly reasonable philosophical
reservations.)  I suspect it will be very hard or impossible, although
I'm happy to be proved wrong.

3. IMO the correct way to handle the case you've suggested is to allow
for compound symmetric variance structures.  I believe glmmTMB can do
this, and the flexLambda branch of lme4 can do this, and it can
certainly be hacked by someone who wants to do it. I would dearly like
to find the time and energy to make the production version of lme4
capable of this, but holding your breath is not recommended.
On 18-02-15 04:07 PM, John Maindonald wrote: