Skip to content
Prev 14097 / 20628 Next

different output in R and SAS for GLMM

On Mon, Dec 28, 2015 at 11:56 PM, Adeela Munawar <adeela.uaf at gmail.com> wrote:
I'm assuming that your SAS results match p. 457 of Stroup's
presentation, which is where I'm guessing you took this from ...
<http://www.csulb.edu/HealthEquity/civicrm/file?reset=1&id=5&eid=26>

The first difference in the results is that R presents the results in
a *different order* (A=1,2,3,1,2,3; B=1,1,1,2,2,2).  Here are Stroup's
results (lsmean estimate only) compared with the glmer results and
from another package (glmmTMB).  There are some small differences, but
nothing that's large enough that I would worry about it much
(especially since the standard errors are much larger than the
differences betwen the different estimates).

       Stroup   glmer glmmTMB
est1 3.2565 3.2129  3.2767
est2 3.3475 3.2298  3.3680
est3 3.3100 3.2793  3.3302
est4 2.5512 2.4995  2.5716
est5 3.3603 3.2490  3.3807
est6 3.6033 3.5637  3.6237

For the second issue, about degrees of freedom -- there is a long,
long discussion about whether computing the degrees of freedom makes
much sense in the GLMM context ...