Skip to content
Prev 19042 / 20628 Next

Log likelihood of a glmer() binomial model .

Juho,

Sorry for the late reply, but we have made some progress here with package merDeriv; see for example

?merDeriv::llcont.glmerMod

We have a related paper that focuses on derivatives, but the same ideas apply to the likelihood/deviance:

https://arxiv.org/abs/2011.10414

You need a way to average over each cluster's posterior distribution of random effects; we use a quadrature method in merDeriv.

Best,
Ed
Message-ID: <DM5PR0101MB3097121DA74B44AE1E6EDE8ED8B59@DM5PR0101MB3097.prod.exchangelabs.com>
In-Reply-To: <DBBPR04MB7850081C436D24C983366777E8B59@DBBPR04MB7850.eurprd04.prod.outlook.com>