Papers
Topics
Authors
Recent
Search
2000 character limit reached

Conjugate GLMMs (CGLMMs)

Updated 9 April 2026
  • Conjugate GLMMs are a class of mixed models that enable closed-form marginal likelihood computation through conjugacy between exponential family likelihoods and random effects.
  • They integrate conjugate random effects to capture overdispersion and Gaussian random effects to model intra-cluster correlations, ensuring efficient and exact inference.
  • CGLMMs unify common models like Gaussian, Poisson, beta-binomial, and gamma, reducing computational burden while accurately addressing hierarchical data structures.

A conjugate generalized linear mixed model (CGLMM) is a class of mixed models for clustered and longitudinal data, distinguished by the feature that, for particular choices of random effects and link functions, the marginal likelihood can be computed in closed form without recourse to numerical integration. CGLMMs unify several well-known models—including Gaussian, Poisson, negative-binomial, beta-binomial, and gamma models—under a single analytic framework. Central to the construction is the conjugacy between the exponential family conditional likelihood and the distribution of (latent) random effects, facilitating analytic marginalization. This enables efficient and exact maximum-likelihood inference in settings that exhibit both overdispersion and hierarchical multilevel structure (Molenberghs et al., 2011, Lee et al., 2017).

1. Model Formulation: Hierarchical and Conjugate Structure

In the general CGLMM framework, the observed outcome YijY_{ij} for subject (or cluster) i=1,,Ni=1,\ldots,N and measurement j=1,,nij=1,\ldots,n_i is modeled conditionally on two types of latent random effects:

  • Conjugate random effects θi\theta_i capture overdispersion—extra variability not explained by the canonical exponential-family model. The form of G(α,β)G(\alpha,\beta), the distribution of θi\theta_i, is chosen to be conjugate to the conditional likelihood (e.g., Gamma for Poisson, Beta for Bernoulli) (Molenberghs et al., 2011).
  • Normal (Gaussian) random effects biN(0,D)b_i \sim N(0,D) of dimension qq induce correlation within clusters or repeated measures, capturing subject-level heterogeneity.

The CGLMM is typically specified as follows:

f(yijθi,bi)=exp{ϕ1[yijλijψ(λij)]+c(yij,ϕ)},f(y_{ij} \mid \theta_i, b_i) = \exp\left\{ \phi^{-1} \left[ y_{ij} \lambda_{ij} - \psi(\lambda_{ij}) \right] + c(y_{ij}, \phi) \right\},

where λij\lambda_{ij} is the canonical parameter, and the conditional mean satisfies: i=1,,Ni=1,\ldots,N0 with link function i=1,,Ni=1,\ldots,N1, fixed effects i=1,,Ni=1,\ldots,N2, and design matrices i=1,,Ni=1,\ldots,N3.

The conjugate random effect modifies the mean at the observation level: i=1,,Ni=1,\ldots,N4 where i=1,,Ni=1,\ldots,N5 is a function of the fixed and normal random effects.

2. Exponential Family Structure and Conjugacy Conditions

Marginalization of the random effects relies on expressing both the outcome distribution and the random-effects prior in compatible (conjugate) exponential-family form (Lee et al., 2017). For a one-parameter exponential family: i=1,,Ni=1,\ldots,N6 with canonical parameter i=1,,Ni=1,\ldots,N7 and cumulant i=1,,Ni=1,\ldots,N8, conjugate priors take: i=1,,Ni=1,\ldots,N9

Closed-form marginalization is possible if the mapping j=1,,nij=1,\ldots,n_i0 and j=1,,nij=1,\ldots,n_i1 induced by covariates is affine in j=1,,nij=1,\ldots,n_i2 and j=1,,nij=1,\ldots,n_i3: j=1,,nij=1,\ldots,n_i4 Those conditions are satisfied for Gaussian, Poisson, and gamma models with nontrivial choices of unit- and group-level covariates, and for the binomial under group-level predictors alone.

3. Marginal Likelihood and Analytic Marginalization

The likelihood contribution for subject j=1,,nij=1,\ldots,n_i5 is expressed as: j=1,,nij=1,\ldots,n_i6 Analytic marginalization is performed over the conjugate random effect j=1,,nij=1,\ldots,n_i7, leveraging conjugacy to obtain, e.g., negative-binomial or beta-binomial-type densities. The remaining integral over the normal random effects j=1,,nij=1,\ldots,n_i8 is handled via classical approaches such as Gauss–Hermite quadrature or Laplace approximation (Molenberghs et al., 2011).

A key property of CGLMMs is that for a wide range of settings—including those with both group- and unit-level covariates in Gaussian, Poisson, and gamma families—the entire marginal likelihood is available in closed form, yielding substantial computational advantages (Lee et al., 2017).

4. Key Special Cases and Model Families

Table 1 summarizes the principal CGLMM special cases for clustered data (Lee et al., 2017):

Family Conditional Model Conjugate Prior Marginal
Gaussian j=1,,nij=1,\ldots,n_i9 θi\theta_i0 Gaussian-integrated
Poisson θi\theta_i1 θi\theta_i2 Negative-binomial
Binomial θi\theta_i3 θi\theta_i4 Beta-binomial
Gamma θi\theta_i5 θi\theta_i6 Inverse-gamma

Context and significance: For Poisson outcomes, the CGLMM recovers the negative-binomial–normal model. For binary outcomes, it yields the beta–binomial–normal model, and for continuous measures, the hierarchical normal model. In each case, overdispersion and cluster-level correlation are jointly modeled.

5. Marginal Covariance, Correlation, and Overdispersion

CGLMMs allow explicit derivation of the marginal covariance and correlation structure for repeated measures or clustered observations. In the Poisson–Gamma–Normal case, for independent θi\theta_i7,

θi\theta_i8

Marginal variances thus combine overdispersion (additional variation from conjugate effects) and correlation from normal random effects (Molenberghs et al., 2011).

An immediate implication is that the closed-form correlation between observations within a cluster can be obtained analytically, facilitating inference on dependence structures and the impact of modeling choices on variance decomposition.

6. Inference, Computation, and Practical Implementation

With explicit marginal likelihoods, parameter estimation proceeds via direct maximum likelihood. After analytic marginalization over conjugate random effects, gradient and Hessian computations are facilitated, supporting classical Wald and likelihood-ratio test theory. Remaining numerical integration (over θi\theta_i9) is typically one-dimensional or low-dimensional, depending on the correlation structure (Molenberghs et al., 2011). In big-data and federated learning environments, groupwise sufficient statistics can be calculated and communicated, simplifying computation and supporting privacy (Lee et al., 2017).

Standard estimation techniques include adaptive quadrature, Laplace approximation, or expectation-maximization (when treating random effects as missing data). In applied practice, platforms such as SAS NLMIXED can accommodate CGLMMs by analytic specification of the closest closed-form (Molenberghs et al., 2011).

7. Illustrative Data Applications and Model Diagnostics

CGLMMs have been applied to epileptic seizure counts, clinical trials on onychomycosis, and childhood asthma survival. For the Poisson–Gamma–Normal CGLMM fit to epileptic seizure data with 45 placebo and 44 active subjects and weekly repeated counts, maximum likelihood estimates yield both overdispersion and random effect variance: G(α,β)G(\alpha,\beta)0 (s.e. 0.2113) and G(α,β)G(\alpha,\beta)1 (s.e. 0.1850). The overdispersion index, G(α,β)G(\alpha,\beta)2, quantifies the departure from Poisson variance (Molenberghs et al., 2011).

In treatment comparison, inference may differ from simpler mixed models; in this example, slope differences found to be significant under the Poisson–Normal disappear under the fuller CGLMM that accommodates overdispersion.

Closed-form marginal correlations allow model comparison and diagnostic assessment, with combined model correlations systematically below those from purely normal-effects models, reflecting the greater absorption of variance by the independent conjugate effects.


Primary references: (Molenberghs et al., 2011, Lee et al., 2017).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (2)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Conjugate GLMMs (CGLMMs).