Why Correlate PD Random Effects?
People can differ jointly in several aspects of a drug response. For example, a person with a higher-than-typical baseline response might also have a larger maximum drug effect; a larger maximum effect might occur alongside a higher concentration needed to produce that effect. A model that assigns each person a separate random effect for each PD parameter can represent this joint variation, but only if it specifies how those effects vary together.
This tutorial focuses on the variance-covariance matrix for random effects on baseline, potency, and maximum effect. Its correlations describe relationships among individual deviations from typical parameter values on the model's random-effect scales. They are not, by themselves, correlations among raw observations, evidence of a causal mechanism, or proof that a particular biological relationship exists.
A PD Model and Its Random-Effects Matrix
Consider a stimulatory Emax model for subject \(i\) at observation \(j\). Let \(C_{ij}\) be the relevant drug concentration, \(B_i\) the subject-specific baseline, \(E_{\max,i}\) the subject-specific maximum drug effect, and \(EC_{50,i}\) the subject-specific concentration producing half of that maximum effect above baseline. A simple observation model is:
For this example, take \(B_i=B+\eta_{B,i}\), \(\log(EC_{50,i})=\log(EC_{50})+\eta_{P,i}\), and \(\log(E_{\max,i})=\log(E_{\max})+\eta_{M,i}\). The log transformations keep potency and maximum effect positive. The random effects have mean zero, so the untransformed baseline \(B\) and the exponentiated typical values are reference values at zero random effect. Assume the residual errors \(\epsilon_{ij}\) have mean zero and are independent of the random effects; their variance model is specified separately.
In this model, \(\eta_{B,i}\) is measured in the response units of \(B_i\), while \(\eta_{P,i}\) and \(\eta_{M,i}\) are deviations on log scales and are dimensionless. A correlation is dimensionless in all three cases. A positive \(\eta_{P,i}\) means a higher \(EC_{50,i}\), and therefore lower potency; a positive \(\eta_{M,i}\) means a higher maximum effect. Thus a positive potency–maximum-effect correlation means that subjects with higher \(EC_{50}\) deviations tend also to have higher maximum-effect deviations. It does not mean that higher potency accompanies higher maximum effect.
A diagonal \(\Omega\) sets all three random-effect correlations to zero. A full \(3\times3\) matrix estimates three variances and three correlations. The matrix must be symmetric and positive definite (or, in boundary cases, positive semidefinite) to represent a valid covariance structure. With a multivariate normal distribution, zero correlation between two random effects implies their independence; without that distributional assumption, zero correlation alone does not imply independence.
Worked Example: Reading a Three-Effect Covariance Matrix
Suppose a hypothetical analysis estimates standard deviations of 4 response units for baseline, 0.30 for log potency, and 0.20 for log maximum effect. The estimated correlations are \(\rho_{BP}=-0.25\), \(\rho_{BM}=0.40\), and \(\rho_{PM}=0.60\). Convert these values to covariances and assemble the matrix.
For each pair, covariance equals correlation times the two standard deviations. Therefore, \(\operatorname{Cov}(\eta_B,\eta_P)=(-0.25)(4)(0.30)=-0.300\), \(\operatorname{Cov}(\eta_B,\eta_M)=(0.40)(4)(0.20)=0.320\), and \(\operatorname{Cov}(\eta_P,\eta_M)=(0.60)(0.30)(0.20)=0.0360\). The variances are \(4^2=16\), \(0.30^2=0.0900\), and \(0.20^2=0.0400\).
The negative baseline–potency correlation describes lower baseline deviations tending to accompany higher log-\(EC_{50}\) deviations, and vice versa, under the model. The positive baseline–maximum-effect correlation describes deviations tending to move together. These statements concern the latent random effects, not every measured baseline or response value.
A valid matrix also needs compatible correlations. For the corresponding correlation matrix, the determinant is \(1+2\rho_{BP}\rho_{BM}\rho_{PM}-\rho_{BP}^2-\rho_{BM}^2-\rho_{PM}^2\). Substitution gives \(1+2(-0.25)(0.40)(0.60)-0.25^2-0.40^2-0.60^2=0.2975\). Its leading principal minors are \(1\), \(1-(-0.25)^2=0.9375\), and \(0.2975\), all positive, so this correlation matrix is positive definite.
How Correlation Changes Response Uncertainty
A random-effects correlation matters because a predicted response depends on several parameters at once. Even if the marginal variability of each parameter stays fixed, the joint pattern of deviations can change the variability of a response at a particular concentration. A useful local approximation is the delta method: for a differentiable quantity \(g(\boldsymbol{\eta})\), approximate it near the zero random-effect vector by \(g(\boldsymbol{0})+\nabla g(\boldsymbol{0})^\mathsf{T}\boldsymbol{\eta}\). The variance of this linear approximation is \(\nabla g(\boldsymbol{0})^\mathsf{T}\Omega\nabla g(\boldsymbol{0})\). This follows by taking the variance of the linear term and applying \(\operatorname{Var}(\boldsymbol{a}^\mathsf{T}\boldsymbol{\eta})=\boldsymbol{a}^\mathsf{T}\Omega\boldsymbol{a}\).
For the Emax drug-effect component \(R=E_{\max}C/(EC_{50}+C)\), consider variation in \(\eta_P\) and \(\eta_M\), holding baseline fixed. Write \(q=C/(EC_{50}+C)\), evaluated at the typical parameters. Since \(EC_{50,i}=EC_{50}\exp(\eta_P)\) and \(E_{\max,i}=E_{\max}\exp(\eta_M)\), the derivatives at zero random effects are \(\partial R/\partial\eta_P=-R(1-q)\) and \(\partial R/\partial\eta_M=R\). Consequently, the local variance is:
The minus sign is important: at a fixed concentration, a higher \(EC_{50}\) reduces the response, whereas a higher \(E_{\max}\) increases it. Positive correlation between those deviations can therefore offset some response variation at concentrations where both parameters influence the response. At other concentrations, the size of the effect differs because \(q\) differs.
Worked Example: Potency–Maximum-Effect Correlation and Response Variability
Suppose the typical \(E_{\max}\) is 100 response units and the concentration is the typical \(EC_{50}\), so \(q=0.5\) and the typical drug-effect component is \(R=100(0.5)=50\) response units. Suppose the standard deviations of \(\eta_P\) and \(\eta_M\) are 0.30 and 0.20, and their correlation is 0.60. Calculate the local response standard deviation due to these two random effects.
The variances are 0.0900 and 0.0400, and the covariance is \((0.60)(0.30)(0.20)=0.0360\). The derivative with respect to \(\eta_P\) is \(-50(1-0.5)=-25\) response units per unit of log deviation; the derivative with respect to \(\eta_M\) is \(50\). Thus:
The approximate standard deviation is \(\sqrt{66.25}=8.139\) response units. If the correlation were zero with the same marginal variances, the covariance term would vanish: the approximate variance would be \(56.25+100=156.25\), and the standard deviation would be 12.50 response units. The difference is not a general promise that positive correlation always reduces response variability: it follows here from the opposing response directions of the two effects and the specified concentration. This is a local, first-order approximation and excludes baseline and residual variability.
Estimating Correlations: Information and Complexity
Estimating correlations requires information about how subjects' random effects co-vary, not merely enough observations to estimate each marginal variance. Repeated PD observations across informative concentration ranges can help distinguish potency from maximum effect: observations only at concentrations far below or far above \(EC_{50}\) may provide limited information about one or both. A correlation estimate can consequently be unstable even when the model converges. The usual model assumptions still matter: subjects are independent draws from the stated random-effects distribution, the parameter transformations and structural PD model are appropriate, and the residual model describes remaining observation-level variation.
A full covariance matrix is more flexible than a diagonal one, but flexibility costs parameters and can make estimation less stable. If all three random effects are included, the diagonal structure estimates three variances; the full structure estimates those same three variances plus three correlations. A structured intermediate choice may estimate selected correlations while fixing others to zero, but that structure should have a defensible rationale and adequate data support. Correlations should not be added just because the software can estimate them.
Worked Example: Does the Fit Improvement Justify Three Correlations?
Compare two hypothetical fits to the same data. Both have eight shared parameters and the same three random-effect variances. The diagonal model has log likelihood \(-120.0\); the full covariance model, which adds three correlations, has log likelihood \(-117.8\). Use AIC, defined as \(\mathrm{AIC}=-2\log L+2k\), to compare them.
The diagonal model has \(k=8+3=11\) parameters, so \(\mathrm{AIC}=-2(-120.0)+2(11)=240+22=262.0\). The full model has \(k=8+3+3=14\) parameters, so \(\mathrm{AIC}=-2(-117.8)+2(14)=235.6+28=263.6\). The full model improves the log likelihood by 2.2, but its AIC is 1.6 units higher. Under this criterion and these hypothetical results, the fit improvement does not offset the penalty for the three additional correlations. This comparison alone does not establish which covariance structure is biologically correct.
Diagnostics, Alternatives, and Limitations
A correlation estimate is more credible when the likelihood and estimates are stable, the covariance matrix remains positive definite, uncertainty is not excessive, and the fitted model reproduces relevant features of the data. Warning signs include correlations close to \(-1\) or \(1\), large standard errors, substantial changes from small modeling adjustments, failure to converge, or a covariance matrix near singularity. Such patterns can indicate weak information, excessive model complexity, or confounding among the random effects. A successful optimizer termination is not sufficient evidence that a correlation is well estimated.
Useful checks include inspecting the estimated standard deviations and correlations together, verifying positive definiteness, and examining whether uncertainty or predictions change substantially across plausible covariance structures. Subject-level residual patterns and simulated or otherwise model-based checks can reveal systematic discrepancies, although a good predictive fit does not by itself validate the interpretation of a latent correlation. When uncertainty is material, likelihood profiles or bootstrap analyses can help assess stability; their results should be interpreted in light of the information available in the data.
| Structure | What it assumes or estimates | Main trade-off |
|---|---|---|
| Diagonal | Estimates each random-effect variance and fixes their correlations to zero | Fewer parameters and often greater stability, but it rules out correlated latent deviations |
| Full covariance | Estimates all variances and pairwise correlations | Represents a general joint normal distribution, but needs more information and can be unstable |
| Structured intermediate | Estimates a selected set of correlations or imposes a simpler correlation pattern | Can reduce complexity, but the imposed pattern may be restrictive |
The diagonal model is not automatically a neutral default: it makes a substantive assumption of zero random-effect correlations under the specified distribution. Conversely, a full covariance estimate is not automatically superior because it captures a sample pattern. Correlations are conditional on the parameter scales, model structure, and included effects; changing transformations or the structural PD model can change their interpretation and estimates. Nonlinear transformations also mean that a correlation between random effects need not equal the correlation between the corresponding natural-scale parameters.
Common Pitfall
Wrong reasoning: “The observed baseline and maximum response are correlated, so I should set the baseline–maximum random-effect correlation to that same value.” The observed measurements include concentration, residual error, repeated-measurement structure, and other model components, so their correlation is not generally the latent random-effect correlation. Correction: Estimate or justify the correlation on the defined random-effect scales within the specified model, then assess whether the data support it. Treat it as a description of joint between-subject variation under that model, not as a causal claim.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions below.
- If the standard deviations of two log-scale random effects are 0.40 and 0.25, and their correlation is \(-0.30\), what is their covariance?
- Under the stated multivariate normal assumption, what does a zero potency–maximum-effect correlation imply? What does it not imply about raw observations?
- For two effects with variances 0.16 and 0.09 and covariance 0.06, calculate their correlation.
- A full three-effect model improves the log likelihood by 1.0 relative to a diagonal model and adds three parameters. What is the change in AIC, full minus diagonal, using the same data?
Solutions. (1) \(\operatorname{Cov}=(-0.30)(0.40)(0.25)=-0.0300\), in squared log-deviation units. (2) The two random effects are independent under the joint normal model; this does not imply that raw PD observations are independent or uncorrelated, since observations also depend on the PD model, concentration, and residual error. (3) The standard deviations are \(\sqrt{0.16}=0.40\) and \(\sqrt{0.09}=0.30\), so \(\rho=0.06/(0.40\times0.30)=0.500\). (4) The likelihood improvement reduces \(-2\log L\) by \(2(1.0)=2.0\), while the three added parameters increase the penalty by \(2(3)=6\); therefore the full model's AIC is \(6-2=4.00\) units higher.