Why the Variance Can Be Too Small
Penalized quasi-likelihood (PQL) turns a non-Gaussian mixed model into a sequence of weighted linear mixed-model calculations. For binary responses, that sequence uses a local approximation to the mean and treats the resulting pseudo-data as Gaussian. This is computationally useful, but it can make evidence for between-cluster variation look weaker than it is. The effect is particularly important when clusters contain few responses or their fitted probabilities give little working information.
The claim is a tendency, not a rule that every PQL fit must underestimate the variance. It is also important to distinguish two kinds of shrinkage. A cluster’s estimated random effect is pulled toward zero by its Gaussian prior in any mixed model. The concern here is different: the estimated population variance of the random intercept, often written \(\tau^2\), may itself be too small because PQL’s approximate working model does not represent the binary likelihood’s information and curvature adequately.
Where the Attenuation Enters
At a current value of the linear predictor \(\eta_{ij}=x_{ij}^{T}\beta+b_i\), write \(\mu_{ij}=\operatorname{logit}^{-1}(\eta_{ij})\). Binary PQL forms the working response and weight
The weighted working model treats \(z_{ij}\) as a noisy observation of the linear predictor, with working variance \(1/w_{ij}\). Thus a small weight means large working noise. The weight is at most \(1/4\), attained at \(\mu_{ij}=1/2\), and it gets smaller as the fitted probability approaches either 0 or 1.
The same weight is the local curvature of the Bernoulli log likelihood with respect to the linear predictor. For one response, the log likelihood, omitting a constant, is \(\ell(\eta)=Y\eta-\log(1+\exp(\eta))\). Its first derivative is \(Y-\mu\), and its second derivative is \(-\mu(1-\mu)=-w\). Consequently, around a current predictor, the data provide approximately \(w\) units of curvature about that predictor. For a cluster, the local curvature contributed by its responses is \(W_i=\sum_j w_{ij}\).
To obtain the factor, expand at \(b_i=0\), so evaluate \(\mu_{ij}\) and \(w_{ij}\) at \(\eta_{ij}=x_{ij}^{T}\beta\). Let \(r_i=\sum_j(Y_{ij}-\mu_{ij})\) be the cluster’s score for its intercept at this expansion point. The quadratic approximation to the log likelihood has the form \(r_i b_i-\tfrac12W_i b_i^2\), apart from terms not involving \(b_i\). Adding the Gaussian log-prior contribution \(-b_i^2/(2\tau^2)\) gives a quadratic whose maximum solves
When \(W_i\) is small, the cluster contributes little curvature relative to the prior precision \(1/\tau^2\), so its estimated intercept is strongly pulled toward zero. Sparse clusters often have small \(W_i\) simply because they contain few responses; probabilities close to zero or one can make each response’s weight small as well. This reduces the separation between cluster-to-cluster signal and working noise in the Gaussian calculations used by PQL.
Worked Example: Calculating a Binary Working Weight and Local Shrinkage
Consider a hypothetical cluster with five binary responses. At a PQL iteration, suppose the fixed part of the linear predictor is \(0.4\), the current random-intercept value is \(0\), and the current variance value is \(\tau^2=3.464\). The five fitted probabilities are therefore all \(\operatorname{logit}^{-1}(0.4)\approx0.5987\). Suppose the observed responses are one event and four non-events.
For each response, the working weight is \(w=0.5987(1-0.5987)=0.5987(0.4013)\approx0.2403\). For the event, the working response is \(z=0.4+(1-0.5987)/0.2403\approx0.4+1.670=2.070\). For a non-event it is \(z=0.4+(0-0.5987)/0.2403\approx-2.092\). These pseudo-responses are on the linear-predictor scale, not probabilities; values outside zero to one are permitted.
The cluster’s total local curvature is \(W_i=5(0.2403)=1.2015\). Its local shrinkage factor is \(C_i=(3.464)(1.2015)/[1+(3.464)(1.2015)]\approx4.162/5.162=0.8063\). Thus the local quadratic calculation retains about 80.63% of the unpenalized score-based intercept estimate. This factor is not close to zero in this particular calculation, but it is below one because the Gaussian prior contributes information toward zero. A smaller cluster or smaller weights would reduce \(C_i\) further.
Why Shrinkage Can Affect the Variance Estimate
PQL does not estimate \(\tau^2\) by simply averaging the squared conditional modes. It estimates variance components through a working Gaussian mixed-model criterion, accounting for the working residual variance and the random-effects distribution. Nevertheless, the working-data representation helps explain the tendency. If the cluster-specific pseudo-data are noisy relative to their between-cluster spread, the Gaussian criterion has limited evidence that the spread is due to random intercepts rather than working error. The variance estimate can then be pulled toward the boundary value zero.
A simple calculation makes this distinction visible. Suppose, just for illustration, that each cluster is summarized by a working mean \(Z_i\) satisfying the approximate model \(Z_i=b_i+e_i\), with independent \(e_i\) of variance \(v\). Then \(\operatorname{Var}(Z_i)=\tau^2+v\). A moment estimate would subtract the known working-noise variance \(v\) from the observed variance of the \(Z_i\), truncating at zero because a variance cannot be negative. This is a teaching approximation, not the exact PQL variance-component estimator.
Worked Example: Working Noise Can Dominate Cluster Spread
Suppose six hypothetical clusters each have five responses with weights approximately \(0.25\). Under the Gaussian working model, the variance of a cluster’s mean working response due to working error is approximately \(v=1/(5\times0.25)=0.8\). Suppose the six centered cluster working means are \(0.2,-0.1,0.3,-0.2,0.1,-0.3\). Their sample variance is
The illustrative noise-corrected estimate is \(\max(0,s_Z^2-v)=\max(0,0.056-0.8)=0\). The observed spread in these working means is far smaller than the working noise expected under this simplified calculation, so it cannot support a positive variance estimate by this rule. An actual PQL fit uses all observations and its specified Gaussian mixed-model criterion, not this cluster-mean shortcut. The example shows why weak between-cluster information in pseudo-data can lead to a boundary estimate; it does not establish that this exact numerical estimate is what a particular PQL software fit would return.
There is a second source of concern: linearization is local, whereas random effects can move the conditional probabilities well away from the expansion point. For example, at \(\eta=0\), the logistic mean is \(0.5\) and its derivative is \(0.25\). The tangent approximation is \(0.5+0.25b\). At \(b=-2\) and \(b=2\), it gives \(0\) and \(1\), while the exact logistic probabilities are approximately \(0.1192\) and \(0.8808\). Beyond those values the tangent can even leave the probability range. The linearized Gaussian calculation therefore need not preserve how the binary likelihood accumulates information across the random-effects distribution. This mismatch can flatten or distort the evidence for a nonzero \(\tau^2\).
Worked Example: Comparing a Tangent Approximation With the Logistic Mean
Take a hypothetical binary random-intercept model with fixed linear predictor zero and consider two possible intercept values, \(b=-2\) and \(b=2\). The exact conditional event probabilities are \(\operatorname{logit}^{-1}(-2)=1/(1+e^2)\approx0.1192\) and \(\operatorname{logit}^{-1}(2)\approx0.8808\).
Linearizing the mean at \(b=0\) uses the value \(0.5\) and slope \(0.25\), giving \(0.5+0.25b\). It predicts \(0\) at \(b=-2\) and \(1\) at \(b=2\), rather than \(0.1192\) and \(0.8808\). The tangent thus exaggerates the separation at these points. PQL’s iterative updates recenter the approximation, but each working calculation remains local; they do not turn the sequence into an exact integration of the binary likelihood over \(b_i\).
What to Check in Practice
A small PQL variance estimate should be treated as an approximation result to investigate, not automatically as proof that clusters are homogeneous. Useful checks include the following:
- Inspect the boundary and convergence information. A variance estimate at or near zero may indicate weak information in the working model. It is not by itself proof that the true variance is zero.
- Examine cluster sizes and fitted weights. Few observations per cluster, or many fitted probabilities near zero or one, produce small \(W_i\) and noisier working responses.
- Compare with a likelihood method that integrates over random effects. Laplace approximation and adaptive quadrature evaluate an approximation to the integrated likelihood rather than relying on Gaussian pseudo-responses as the final data representation. Agreement is reassuring; disagreement signals sensitivity to approximation choice. Neither method is automatically reliable if its numerical diagnostics are poor.
- Check sensitivity to the working fit. Changes in starting values or iterations that materially change the variance estimate merit attention, as do estimates that remain at a boundary despite apparent cluster-level pattern.
This comparison does not mean that PQL is always unusable or that integration-based estimates are always correct. PQL can be convenient and can perform adequately when its approximation is suitable. Its key limitation here is structural: a local linearization followed by a Gaussian variance calculation may not retain the binary model’s full information about heterogeneity. With limited within-cluster data, there may also be little information to estimate \(\tau^2\) precisely even under a more accurate likelihood method.
Common Mistake
A second overstatement is to claim that binary PQL always underestimates \(\tau^2\). The direction and size of approximation error depend on the design, the fitted probabilities, the amount of information, and the fitting details. “Can shrink” or “often underestimates in sparse settings” is more defensible than a universal claim.
Check Your Understanding
Answer each question, then compare with the brief solutions.
- Why does a fitted probability near \(0.5\) give more binary working weight than one near \(0.05\)?
- For \(W_i=0.4\) and \(\tau^2=1\), calculate the local shrinkage factor \(C_i\).
- Does \(C_i\) estimate the population variance \(\tau^2\)? Explain.
- In the simplified working-mean illustration, if the observed cluster-mean variance is \(0.30\) and the working-noise variance is \(0.50\), what is the truncated moment estimate, and what does it indicate?
- Why is a small PQL estimate not conclusive evidence that the true random-intercept variance is zero?
Solutions. (1) The weight is \(\mu(1-\mu)\), which is largest at \(0.5\); at \(0.05\) it is \(0.05(0.95)=0.0475\), much smaller than \(0.25\). (2) \(C_i=(1)(0.4)/[1+(1)(0.4)]=0.4/1.4\approx0.286\). (3) No. It is a local factor describing how much of a score-based conditional intercept estimate remains after the Gaussian prior is included. (4) \(\max(0,0.30-0.50)=0\); in this illustration working noise exceeds the observed spread, so the calculation gives no positive variance evidence. (5) PQL uses a local linearization and Gaussian working-data criterion, and sparse clusters may offer weak information; the boundary estimate can reflect approximation and limited information, not necessarily a truly zero variance.