Tutorials › Bayesian Clinical Trials › Robust Mixtures for Logistic Treatment Effects

Robustness to Prior-Data Conflict · Tutorial 409 of 696

Robust Mixtures for Logistic Treatment Effects

Specify a historical and protective mixture prior for a log-odds treatment effect, then calculate how current trial responses update the component weights and posterior.

Advanced 12 min read

What You'll Learn

  • Define a logistic treatment effect as a log odds ratio and distinguish it from an odds ratio.
  • Specify historical and protective normal prior components and their mixture weight.
  • Derive component-specific posterior distributions under a normal likelihood approximation.
  • Update the probability of each prior component using its marginal likelihood.
  • Calculate how agreement or conflict changes borrowing from historical evidence.
  • Recognize when a normal approximation is inadequate and why a mixture is not a cure for a poor model.

Why Robust Mixtures Matter for Logistic Effects

In a randomized trial with a binary endpoint, a logistic model expresses the treatment effect as a change in log odds. Historical evidence may support a prior concentrated around a beneficial effect, but the current trial may not agree with that evidence. A single concentrated prior can then pull the posterior toward historical results even when current responses point elsewhere. A robust mixture offers a safeguard: it assigns some prior probability to a less concentrated component, allowing the current likelihood to have more influence if the historical component fits poorly.

The mixture does not identify whether historical evidence is “true” or “false.” Rather, it represents uncertainty about how applicable that evidence is to the current trial. The degree of borrowing is updated by the current data, conditional on the specified model and prior.

Logistic Treatment Effect and Mixture Prior

Definition: For a binary outcome \(Y\), let \(T=1\) denote treatment and \(T=0\) control. In a logistic regression model, the treatment effect \(\beta\) is the coefficient of \(T\) in the logit of the outcome probability. With no covariates, \(\beta=\operatorname{logit}(p_T)-\operatorname{logit}(p_C)\), where \(\operatorname{logit}(p)=\log\{p/(1-p)\}\). Thus \(\exp(\beta)\) is the treatment-to-control odds ratio. A robust mixture prior has the form \(\pi_H N(\mu_H,\tau_H^2)+(1-\pi_H)N(\mu_P,\tau_P^2)\), where \(H\) denotes the historical component and \(P\) the protective component.

The historical component is centered on an effect supported by historical information, with \(\tau_H^2\) reflecting uncertainty about that effect. The protective component is usually centered at a neutral or otherwise conservative value and is more diffuse, so it can accommodate current effects that differ from the historical center. “Protective” refers to protection against excessive borrowing under conflict; it does not mean that the component is necessarily favorable to treatment. In the examples below, the protective prior is centered at zero.

The mixture weight \(\pi_H\) is the prior probability assigned to the historical component, not a fixed fraction of the current data to be borrowed. After observing current data, the posterior component probability can be much larger or smaller than \(\pi_H\). A conventional normal prior is recovered if one component has weight zero, while a very diffuse single prior gives no explicit historical component to downweight.

Likelihood and Posterior Calculations

For a two-arm trial with independent binomial outcomes, let \(Y_T\) and \(Y_C\) be the numbers of events among \(n_T\) treated and \(n_C\) control participants. Under the unadjusted model, \(Y_T\sim\operatorname{Binomial}(n_T,p_T)\) and \(Y_C\sim\operatorname{Binomial}(n_C,p_C)\), independently, with \(\operatorname{logit}(p_T)-\operatorname{logit}(p_C)=\beta\). This model assumes that each participant contributes one binary outcome, participants are independent within and across arms, and the treatment effect is represented by the stated log odds contrast. A covariate-adjusted logistic model can be used instead, but the treatment coefficient then has a conditional interpretation given the included covariates.

The binomial logistic likelihood is not generally conjugate to normal priors. When the likelihood is well approximated near its maximum by \(y\mid\beta\sim N(\beta,s^2)\), the mixture calculations have a simple closed form. Here \(y\) is an estimate of the log odds effect and \(s\) its standard error. This approximation is most defensible when the maximum likelihood estimate is finite and the data are not too sparse. It is an approximation to the likelihood, not a claim that the original binary outcomes are normally distributed.

Within each component, multiplying the normal likelihood by the normal prior gives a normal posterior. The component-specific posterior variance \(v_j\) and mean \(m_j\), for \(j\in\{H,P\}\), are:

$$ v_j=\left(\frac{1}{s^2}+\frac{1}{\tau_j^2}\right)^{-1}, \qquad m_j=v_j\left(\frac{y}{s^2}+\frac{\mu_j}{\tau_j^2}\right). $$

The likelihood under each component, after integrating over \(\beta\), is the normal density of \(y\) with mean \(\mu_j\) and variance \(s^2+\tau_j^2\). Write this density as \(\phi(y;\mu_j,s^2+\tau_j^2)\). Bayes’ rule therefore gives the posterior probability of the historical component:

$$ \omega_H(y)= \frac{\pi_H\phi(y;\mu_H,s^2+\tau_H^2)} {\pi_H\phi(y;\mu_H,s^2+\tau_H^2) +(1-\pi_H)\phi(y;\mu_P,s^2+\tau_P^2)}. $$

The overall posterior is a mixture of the two component posteriors, with weights \(\omega_H(y)\) and \(1-\omega_H(y)\). Its mean is \(\omega_H(y)m_H+\{1-\omega_H(y)\}m_P\). These calculations show the protective mechanism: if the observed estimate is poorly supported by the historical component relative to the protective one, the posterior probability of the historical component falls.

Worked Example: Current Estimate Near the Historical Center

Suppose a hypothetical trial provides a log odds estimate \(y=0.35\) with standard error \(s=0.25\). Assign prior probability \(\pi_H=0.70\) to a historical component \(N(0.4055,0.04)\), and probability \(0.30\) to a protective component \(N(0,2.25)\). The estimate and standard error are treated as a normal likelihood approximation, and the component parameters are assumed specified before examining the current responses.

For the historical component, \(s^2=0.0625\), so \(v_H=(16+25)^{-1}=0.02439\) and \(m_H=0.02439\{16(0.35)+25(0.4055)\}=0.3838\). For the protective component, \(v_P=(16+1/2.25)^{-1}=0.06081\), and \(m_P=0.06081\{16(0.35)+0/2.25\}=0.3405\).

The marginal density of the estimate under the historical component is \(\phi(0.35;0.4055,0.1025)\approx1.228\), since \(0.1025=0.0625+0.04\). Under the protective component it is \(\phi(0.35;0,2.3125)\approx0.2555\), since \(2.3125=0.0625+2.25\). Thus \(\omega_H(y)=\{0.70(1.228)\}/\{0.70(1.228)+0.30(0.2555)\}\approx0.918\).

The posterior mean is approximately \(0.918(0.3838)+0.082(0.3405)=0.3803\), corresponding to an odds ratio at the posterior mean of \(\exp(0.3803)\approx1.463\). This is a summary of the log odds effect and its exponentiation, not the posterior mean odds ratio. Here the current estimate is close to the historical center, so the historical component retains high posterior weight.

Worked Example: Current Estimate Conflicts With Historical Evidence

Keep the prior specification from the previous calculation, but suppose the hypothetical current estimate is \(y=-0.80\), again with \(s=0.25\). This value is far below the historical center. The likelihood approximation, component priors, and prior weight are unchanged; only the observed estimate differs.

The historical marginal density is \(\phi(-0.80;0.4055,0.1025)\approx0.00104\). The protective marginal density is \(\phi(-0.80;0,2.3125)\approx0.2284\). Consequently, \(\omega_H(y)=\{0.70(0.00104)\}/\{0.70(0.00104)+0.30(0.2284)\}\approx0.0105\). The historical component now has only about 1.05% posterior probability, despite its 70% prior probability.

The historical component posterior mean is \(m_H=(16(-0.80)+25(0.4055))/41\approx-0.06494\). The protective component posterior mean is \(m_P=16(-0.80)/(16+1/2.25)\approx-0.7784\). The mixture posterior mean is therefore \(0.0105(-0.06494)+0.9895(-0.7784)\approx-0.7709\), with exponentiation giving an odds ratio of approximately \(\exp(-0.7709)=0.4627\). Under this model, the posterior is dominated by the protective component because the observed estimate is much more plausible under that component’s broader marginal distribution.

Worked Example: From Event Counts to a Mixture Update

Consider a hypothetical trial with 45 events among 100 treated participants and 30 among 100 controls. The estimated log odds ratio is \(y=\log(45/55)-\log(30/70)=-0.2007-(-0.8473)=0.6466\). Using the usual large-sample standard error for the difference in logits gives \(s=\sqrt{1/45+1/55+1/30+1/70}=\sqrt{0.08802}=0.2967\). Both arms have events and non-events, so the unadjusted maximum likelihood estimate is finite; the approximation still depends on the adequacy of the large-sample normal approximation.

For illustration, take \(\pi_H=0.70\), a historical prior \(N(0.50,0.04)\), and a protective prior \(N(0,2.25)\). The likelihood precision is \(1/s^2\approx11.361\). The component posteriors are \(v_H=(11.361+25)^{-1}=0.02750\), \(m_H=0.02750\{11.361(0.6466)+25(0.50)\}\approx0.5460\); and \(v_P=(11.361+0.4444)^{-1}=0.08471\), \(m_P=0.08471\{11.361(0.6466)\}\approx0.6222\).

The marginal densities are approximately \(\phi(0.6466;0.50,0.1280)=1.025\) and \(\phi(0.6466;0,2.3380)=0.2387\). Thus the historical posterior weight is \(\{0.70(1.025)\}/\{0.70(1.025)+0.30(0.2387)\}\approx0.909\). The posterior mean log odds ratio is approximately \(0.909(0.5460)+0.091(0.6222)=0.5529\). Its exponentiation is about 1.738. The current estimate is above the historical center, but not so discrepant that it substantially reduces the historical component’s posterior weight.

Justification and Interpretation

The component update follows directly from Bayes’ rule. Let \(J\) indicate which prior component generated \(\beta\). Conditional on \(J=j\), the normal prior and normal likelihood yield the component posterior above. The marginal probability of the data under that component is obtained by integrating out \(\beta\):

$$ \int \phi(y;\beta,s^2)\phi(\beta;\mu_j,\tau_j^2)\,d\beta =\phi(y;\mu_j,s^2+\tau_j^2). $$

The equality follows because the distribution of \(y\) is the convolution of independent normal uncertainty in \(\beta\) and in the estimate conditional on \(\beta\); their means add and their variances add. Applying Bayes’ rule to \(J\) gives \(\omega_H(y)\). Thus posterior reweighting is not an extra penalty imposed on historical data: it is the ordinary consequence of comparing how well each component predicts the current estimate.

The mixture posterior mean can be useful, but it does not fully describe posterior uncertainty. A mixture may be asymmetric or have substantial mass in two regions. Its variance includes both within-component variance and variation between component means:

$$ \operatorname{Var}(\beta\mid y) =\omega_H\{v_H+(m_H-\bar m)^2\} +(1-\omega_H)\{v_P+(m_P-\bar m)^2\}, \qquad \bar m=\omega_Hm_H+(1-\omega_H)m_P. $$

Accordingly, credible intervals should be calculated from the full posterior mixture, rather than formed by averaging the component interval endpoints. An odds ratio is obtained by exponentiating a value or interval on the log odds scale; the direction of the effect must be interpreted using the stated treatment-versus-control coding.

Assumptions, Diagnostics, and Alternatives

A robust mixture is only as appropriate as its likelihood and components. The historical center and scale should represent the historical evidence on the same estimand and a comparable endpoint definition. Differences in patient population, follow-up, outcome ascertainment, or treatment delivery can make the historical evidence less applicable. The protective component also needs a defensible scale: too narrow, and it may not protect against meaningful conflict; too wide, and it can be nearly uninformative and can interact with the prior weight in ways that are difficult to anticipate.

Before relying on the normal approximation, inspect the binomial counts and logistic fit. Zero or very small cell counts, separation, an unstable standard error, or strong covariate-model dependence can make a symmetric normal approximation misleading. In such settings, compute the posterior using the binomial logistic likelihood directly, with numerical integration or a validated sampling method, and retain the same mixture structure. Also check that the treatment coefficient and historical prior refer to the same contrast and coding. A sign reversal caused by swapping treatment and control is not evidence of prior-data conflict.

The main alternatives answer different modeling needs. A single historical normal prior always retains its one component and cannot adapt its borrowing through component reweighting. A weak prior based only on current data avoids historical borrowing, but discards potentially relevant information even when historical and current results agree. The robust mixture places explicit prior probability on both borrowing and a protective route, then updates their relative probabilities from current data. It does not automatically resolve differences in estimands, remove bias, or guarantee calibrated operating characteristics. Its prior weight and scales require prespecification and sensitivity assessment.

Common Mistakes

  • Calling \(\pi_H\) the realized borrowing fraction. It is the prior component probability. The posterior probability \(\omega_H(y)\) depends on the current data and can be very different.
  • Assuming a diffuse protective component has negligible density everywhere. A normal density is determined by both its variance and the observed value; evaluate the density using its stated variance rather than an intuition about “diffuse.”
  • Reading the posterior mean as a full posterior summary. A mixture can be non-normal. Calculate intervals or event probabilities from the mixture distribution itself.
  • Interpreting a log odds effect as an odds ratio. The coefficient \(\beta\) is on the log odds scale; \(\exp(\beta)\) is the odds ratio, with treatment and control order stated.
  • Treating downweighting as proof of incompatibility. A low historical component weight is conditional on the chosen likelihood and priors. It does not establish why the historical and current evidence differ.
Key takeaway: A robust logistic mixture combines a historical prior component with a protective component. Under a normal likelihood approximation, each component has a normal posterior, and the current estimate updates the component probabilities through their marginal densities. Agreement supports borrowing; conflict can shift posterior mass toward the protective component.

Check Your Understanding

Answer each question, then compare with the brief solutions below.

  1. In a logistic model with treatment coded \(T=1\), what does \(\exp(\beta)\) represent?
  2. Why can the posterior probability of the historical component differ from its prior probability?
  3. Suppose the historical component assigns much lower marginal density to the observed estimate than the protective component. Which component’s posterior weight should increase, and why?
  4. Why is exponentiating a posterior mean log odds effect not generally the same as calculating the posterior mean odds ratio?
  5. Name two conditions that can make the normal likelihood approximation to a logistic treatment effect questionable.

Solutions. (1) It is the treatment-to-control odds ratio, conditional on other covariates if present. (2) Bayes’ rule reweights components according to their marginal likelihoods for the current data. (3) The protective component’s posterior weight increases, because the observed estimate is better supported under that component. (4) Exponentiation is nonlinear, so in general \(E\{\exp(\beta)\mid y\}\ne\exp\{E(\beta\mid y)\}\). (5) Examples include sparse or zero cells, separation, an unstable standard error, and a strongly non-normal likelihood.

Clinical Biostats