Tutorials › Response-Adaptive Randomization › Outcome Regression for Covariate-Adjusted Allocation

Covariate-Adaptive and Covariate-Adjusted Allocation · Tutorial 430 of 501

Outcome Regression for Covariate-Adjusted Allocation

See how to specify treatment-outcome regressions and turn their fitted values into treatment-specific response estimates for covariate profiles and populations.

Intermediate 11 min read

What You'll Learn

  • Define treatment-specific conditional mean responses from an outcome regression.
  • Specify linear models for continuous outcomes and logistic models for binary outcomes.
  • Convert fitted model values into response estimates for particular covariate profiles.
  • Standardize profile-specific estimates over a stated covariate distribution.
  • Interpret treatment interactions and recognize when a common treatment effect is assumed.
  • Check key assumptions and identify warning signs such as sparse data or extrapolation.

Why Model the Outcome?

When allocation uses baseline covariates, a treatment’s observed response rate or mean can reflect both treatment and differences in the patients assigned to it. An outcome regression gives a structured way to estimate responses while accounting for measured baseline characteristics. The central task here is to specify a model for the response and use it to calculate what each treatment’s expected response would be for the same covariate profile.

Let \(A_i\) denote the treatment assigned to participant \(i\), with \(A_i=1\) for treatment and \(A_i=0\) for control, and let \(X_i\) denote the participant’s baseline covariates. Let \(Y_i\) be the observed outcome. A treatment-specific conditional mean is the expected outcome at a given profile \(x\) under treatment \(a\). It is estimated by fitting an outcome model and substituting \(A=a\) and \(X=x\). This substitution is a prediction; it is not an observed outcome for that participant under both treatments.

Definition: The treatment-specific response function is \(m_a(x)=E(Y\mid A=a,X=x)\), for \(a\in\{0,1\}\). An outcome regression specifies how \(m_a(x)\) depends on treatment and baseline covariates. The fitted value \(\hat m_a(x)\) estimates the expected response for participants with profile \(x\) if assigned treatment \(a\).

Models for Continuous and Binary Responses

For a continuous response, a linear model specifies the conditional mean as a linear function of treatment and covariates. For example, with one covariate \(X\), a model without treatment-by-covariate interaction is

$$ E(Y\mid A,X)=\beta_0+\beta_A A+\beta_X X. $$

Here, the treatment-specific fitted means are \(\hat m_0(x)=\hat\beta_0+\hat\beta_Xx\) and \(\hat m_1(x)=\hat\beta_0+\hat\beta_A+\hat\beta_Xx\). This model assumes a common treatment contrast: at every covariate value, the fitted difference between treatment and control is \(\hat\beta_A\). If the treatment contrast may depend on \(X\), include an interaction term, such as \(\beta_{AX}AX\). Then the contrast is \(\beta_A+\beta_{AX}x\), rather than a constant.

For a binary response coded \(Y=1\) when the specified event occurs and \(Y=0\) otherwise, logistic regression models the probability of that event. The logit link is \(\log\{p/(1-p)\}\), where \(p\) is the event probability:

$$ \log\left(\frac{P(Y=1\mid A,X)}{1-P(Y=1\mid A,X)}\right) =\beta_0+\beta_A A+\beta_X X. $$

The inverse-logit function converts a fitted linear predictor \(\eta\) into a probability: \(1/(1+\exp(-\eta))\). Thus, for a binary response, first substitute a treatment and profile into the linear predictor, then apply the inverse logit. A coefficient in a logistic model describes a change in log odds, not a change in probability. The corresponding probability change depends on the starting risk and the covariate profile.

Assumptions and the Meaning of Predictions

A fitted model is useful only in relation to its assumptions. The covariates used for adjustment should be measured before treatment assignment. The model’s functional form should be a reasonable description of how the conditional mean (or, for logistic regression, the log odds) varies with those covariates and treatment. In particular, an interaction should be included when the intended model allows treatment responses to vary across covariate profiles. Predictions for profiles far outside the observed data require extrapolation and may be unreliable.

For a randomized trial, interpreting a treatment-specific model prediction as an expected response under assignment also relies on the trial’s treatment assignment and outcome measurement being well-defined. In an adaptive trial, assignments can depend on previously observed information; the relevant randomization condition is that, given the design history and baseline information used at assignment, the current assignment is randomized with a known, nonzero probability for each treatment. For a causal interpretation, consistency and no interference are also needed: each participant’s observed outcome corresponds to the treatment received, and one participant’s assignment does not alter another’s outcome. These conditions do not guarantee that the regression model is correct. For a causal interpretation of the stated regression \(E(Y\mid A=a,X=x)\), history must be ignorable given \(X\); otherwise, history related to potential outcomes must be included or otherwise appropriately accounted for in estimation and standardization, with positivity.

A model-based estimate for a particular profile answers a conditional question. To describe a population with a mix of profiles, average the treatment-specific predictions over a stated covariate distribution. This is called standardization. The distribution might be the covariate profiles in the trial or a separately specified target population. The choice matters: two populations with different covariate mixes can have different standardized responses even when their profile-specific predictions are the same.

Worked Example: Continuous Response at Specific Profiles

Suppose a hypothetical trial measures a symptom score after treatment, with lower scores indicating fewer symptoms. Investigators fit a linear model using age \(X\), centered at 50 years, and obtain \(\hat\beta_0=10.0\), \(\hat\beta_A=-1.20\), and \(\hat\beta_X=0.080\) score points per year. The fitted model has no treatment-by-age interaction.

For a participant aged 50 years, \(x=0\). The fitted control mean is \(10.0+0.080(0)=10.0\) score points, and the fitted treatment mean is \(10.0-1.20+0.080(0)=8.80\) score points.

For a participant aged 60 years, \(x=10\). The control estimate is \(10.0+0.080(10)=10.8\) points; the treatment estimate is \(10.0-1.20+0.080(10)=9.60\) points. At either age, the treatment-minus-control contrast is \(-1.20\) points because the specified model imposes a common contrast.

Now suppose the hypothetical target population is 60% age 50 and 40% age 60. Standardizing over those two profiles gives a control mean of \(0.60(10.0)+0.40(10.8)=10.32\) points and a treatment mean of \(0.60(8.80)+0.40(9.60)=9.12\) points. The standardized treatment-minus-control contrast is \(9.12-10.32=-1.20\) points. All predictions here use the stated model; they are not separate measurements at each age.

From Profile Predictions to a Population Estimate

For a finite set of \(K\) profiles with specified weights \(w_k\), where \(w_k\geq 0\) and the weights sum to one, the standardized response estimate under treatment \(a\) is the weighted average of the model predictions. The treatment contrast is the difference between the two standardized estimates. The calculation follows directly from averaging the predicted response at each profile:

$$ \hat\mu_a^{\,std}=\sum_{k=1}^{K}w_k\hat m_a(x_k), \qquad \hat\Delta^{\,std}=\hat\mu_1^{\,std}-\hat\mu_0^{\,std}. $$

This is a short but important justification: every profile receives the same weight when predicting under treatment and control, so the comparison refers to one common covariate distribution. If the weights instead differed by treatment, the contrast could mix treatment differences with differences in profile composition. For continuous covariates, standardization uses the same idea, averaging predictions over the chosen distribution rather than over a finite list.

For binary outcomes, average the predicted probabilities on the probability scale. Averaging linear predictors or log odds and then applying the inverse logit generally gives a different result from averaging the profile-specific probabilities. The target is an average event probability, so the profile probabilities must be calculated first.

Worked Example: Converting a Logistic Prediction to a Probability

In a hypothetical binary-outcome model, suppose the fitted linear predictor for a specified treatment and baseline profile is \(\hat\eta=0.70\). The predicted probability of the event is

$$ \hat p=\frac{1}{1+\exp(-0.70)} =1-\frac{1}{1+\exp(0.70)} \approx 0.6682. $$

The model therefore estimates a 66.82% event probability for that treatment and profile. The number \(0.70\) is a log-odds value, not a 70% probability. In this calculation, \(1-1/(1+\exp(0.70))\) is approximately \(0.6682\), or 66.82%; it is not 0.1682. This is a predicted response probability, not a treatment contrast.

Worked Example: Binary Responses With Treatment Heterogeneity

Consider hypothetical fitted coefficients from a logistic model with a binary baseline risk indicator \(X\), where \(X=0\) denotes lower risk and \(X=1\) higher risk:

$$ \operatorname{logit}\{P(Y=1\mid A,X)\} =-1.00+0.70A+0.60X-0.50AX. $$

For lower-risk participants, the control linear predictor is \(-1.00\), giving probability \(1/(1+\exp(1.00))\approx0.2689\). Under treatment it is \(-1.00+0.70=-0.30\), giving probability \(1/(1+\exp(0.30))\approx0.4256\). Using the unrounded fitted probabilities, the treatment-minus-control difference is approximately \(0.1566\), or 15.66 percentage points.

For higher-risk participants, the control predictor is \(-1.00+0.60=-0.40\), giving probability approximately \(0.4013\). The treatment predictor is \(-1.00+0.70+0.60-0.50=-0.20\), giving probability approximately \(0.4502\). The difference is \(0.4502-0.4013=0.0489\), or 4.89 percentage points. The interaction permits the fitted probability contrast to differ by profile; the treatment coefficient alone is not the treatment contrast for every participant.

Suppose 60% of the target population has \(X=0\) and 40% has \(X=1\). The standardized control probability is \(0.60(0.2689)+0.40(0.4013)=0.3219\), and the standardized treatment probability is \(0.60(0.4256)+0.40(0.4502)=0.4354\). Their difference is \(0.4354-0.3219=0.1135\), or 11.35 percentage points. This calculation averages probabilities over the same profile weights under both treatments.

Checks, Alternatives, and Limitations

Before using fitted responses, check whether the model can support the requested predictions. For a linear model, inspect whether the chosen covariate form and interaction structure are plausible for the outcome and observed range. For logistic regression, check that fitting converged and that the data contain enough outcome events across the treatment and covariate combinations being modeled. Extremely sparse combinations can produce unstable coefficients and probabilities near zero or one. In either model, predictions for profiles with little or no representation in the trial are extrapolations, not well-supported summaries.

Regression is not the only way to obtain treatment-specific estimates. Unadjusted arm means or event proportions are simple and avoid choosing a covariate functional form, but they can be imprecise or reflect different covariate mixes in the arms. Separate estimates within well-populated covariate strata are more transparent about profile differences, but can be noisy when many covariates create many small cells. Regression shares information across profiles through its specified structure; that can improve precision when the structure is reasonable, but can mislead when it is not.

A further limitation is that model-based estimates depend on the response scale and the model specification. In logistic regression, an odds ratio is not a probability difference, and the same odds ratio can correspond to different probability differences at different baseline risks. If covariate effects or treatment effects are misspecified, predictions may be systematically wrong. Outcome regression is therefore a tool for constructing conditional and standardized response estimates, not a substitute for checking data support and the scientific plausibility of the model.

Common Mistakes

  • Reading a regression coefficient as a response probability. In a logistic model, coefficients act on log odds. Apply the inverse logit to the full linear predictor to obtain a probability.
  • Assuming treatment effects are constant without checking the model. A model without an interaction imposes a common contrast on its modeled scale. An interaction changes that assumption, and in a logistic model probability differences can vary across profiles even without an interaction.
  • Averaging on the wrong scale. To estimate an average binary response, calculate each profile’s predicted probability and then average those probabilities using the chosen weights.
  • Predicting outside the data and treating the result as established. A numerical prediction can be computed for an unobserved profile, but it relies on extrapolation and may be unstable.
Key takeaway: Specify the response model first, calculate a treatment-specific prediction at each covariate profile, and average those predictions over an explicitly stated common covariate distribution when a population-level estimate is needed. Interpret the result on the response scale and in context.

Check Your Understanding

Answer each question, then compare with the brief solutions.

  1. A linear model has fitted mean \(\hat m_a(x)=5+2a+0.5x\). What are the fitted means under control and treatment at \(x=4\), and what contrast does the model impose?
  2. A logistic model gives a linear predictor of zero for a profile. What is the predicted event probability?
  3. For two profiles, predicted event probabilities under control are 0.20 and 0.50, and under treatment are 0.30 and 0.60. If the target weights are 0.75 and 0.25, calculate both standardized probabilities and their difference.
  4. Why is a prediction for a profile absent from the trial potentially unreliable even if the regression software returns a value?

Solutions. (1) Control: \(5+0.5(4)=7\); treatment: \(5+2+0.5(4)=9\). The model imposes a treatment-minus-control contrast of 2 response units. (2) The inverse logit of zero is \(1/(1+\exp(0))=0.50\), or a 50% event probability. (3) Control: \(0.75(0.20)+0.25(0.50)=0.275\). Treatment: \(0.75(0.30)+0.25(0.60)=0.375\). The difference is \(0.375-0.275=0.100\), or 10 percentage points. (4) The prediction relies on extrapolating the model beyond covariate profiles supported by observed data, so it may depend strongly on the assumed model form rather than on direct information from the trial.

Clinical Biostats