Skip to content
Prev 14662 / 20628 Next

Help concerning GLMM estimation needed

This is going to be a bit of a challenge.  glmer really depends on
extensions of the machinery used in GLM (see e.g. McCullagh and Nelder
or Barnett and Dobson or ...)  *If* the distribution is in the
exponential family, then you should be able to define a new family
argument for it following the existing ones (binomial, Poisson, Gamma,
etc.), which defines the mean-variance relationship.  However, many
extensions of the exponential family (e.g. negative binomial with an
unspecified shape parameter) won't work without additional machinery.
(You could do what glmer.nb does, wrapping an internal loop that
estimates an exponential family model with a fixed parameter inside an
outer loop ...)

The machinery of Laplace approximation is described e.g. in

Madsen, Henrik, and Poul Thyregod. Introduction to General and
Generalized Linear Models. CRC Press, 2011.

 For mixed models using arbitrary conditional distributions, a better
start might be the TMB or glmmTMB projects (see kaskr/adcomp and
glmmTMB/glmmTMB on Github).  Or you could look into generalized
estimating equation machinery, which only needs to know the
mean-variance relationship.
On 16-07-03 12:14 PM, Isaac Adeniyi wrote: