Skip to main content
Wiley Open Access Collection logoLink to Wiley Open Access Collection
. 2026 Mar 8;25(2):e70080. doi: 10.1002/pst.70080

“Within‐Trial” Prognostic Score Adjustment Is Targeted Maximum Likelihood Estimation

Emilie Højbjerre‐Frandsen 1,2,✉, Alejandro Schuler 3
PMCID: PMC12968522  PMID: 41797328

ABSTRACT

Adjustment for “super” or “prognostic” composite covariates has become more popular in randomized trials recently. These prognostic covariates are often constructed from historical data obtained from previous clinical trials or registries by fitting a predictive model of the outcome on the raw covariates. A natural question that we have been asked by applied researchers is whether this can be done without the historical data: can the prognostic covariate be constructed or derived from the trial data itself, possibly using different folds of the data, before adjusting for it? Here we clarify that such “within‐trial” prognostic adjustment is nothing more than a form of targeted maximum likelihood estimation (TMLE), a well‐studied procedure that typically improves the power of trial analyses. We therefore argue that there is no reason to reinvent the wheel: within‐trial prognostic score adjustment should be referred to as TMLE, without qualification.

Keywords: causal inference, prognostic scores, randomized trials, targeted learning

1. Introduction

Recently, there has been an increase in the exploration of “super covariates” or “prognostic covariates” [1] as effective tools for covariate adjustment in statistical analysis in randomized clinical trials (RCTs). The idea, which in principle dates back at least to Tukey [2], is to utilize historical data to develop a single prognostic covariate, facilitating an increase in efficiency with reduced risk of overfitting. This strategy effectively combines insights from earlier trials to strengthen the overall study power [1, 2, 3, 4]. Schuler et al. [4] formalized some of these ideas into the PROCOVA 1 approach, which allows for adjustment of a prognostic score in a linear analysis and translates the potential power gains to sample size gains. We will refer to this method as standard prognostic score adjustment. This method preserves the randomization process and mitigates the increase in type I errors seen for other data fusion methods [5, 6, 7]. Schuler et al. [4] demonstrated that the estimate of the average treatment effect (ATE) derived from this method is efficient, given the assumption of homogeneous treatment effects. Højbjerre‐Frandsen et al. [8] examine the practical aspects associated with the application of this method.

Another example of how to increase efficiency by adjusting for baseline covariates is targeted maximum likelihood estimation (TMLE) [9, 10]. The method is suitable for a wide range of data types and does not require the availability of historical data. There are numerous extensions that utilize cross‐validation to enhance efficiency [11, 12, 13, 14, 15, 16, 17]. In many instances, the estimator achieves local semi‐parametric efficiency, with discussions by [9, 10, 18] outlining the requirements for TMLE to reach non‐parametric efficiency. Additionally, Liao et al. [19] expanded the method of prognostic score adjustment to encompass estimators that are already efficient, which is usually the case for TMLE under an RCT.

In this paper we explore “within‐trial” prognostic score adjustment. This method leverages the ideas of prognostic score adjustment, but eliminates the need for historical data. We start by setting the theoretical framework for ATE estimation in an RCT. We next describe how a linear model can be used for ATE estimation, following how the efficiency of this procedure can be increased using prognostic scores. We next explain TMLE for ATE estimation in a 1:1 RCT setting and use this to argue that within‐trial prognostic adjustment is a type of TMLE for ATE estimation in RCTs. Finally, we discuss the impact of the equivalence between the two methods and compare this to the standard prognostic score adjustment proposed by Schuler et al. [4].

2. Setting and Notation

Our setting is a two‐arm trial involving n participants Oi=WiAiYi, which are drawn independently and identically distributed from some population distribution. 2 We refer to a generic observation as O=W,A,Y without index i. Here Y represents a continuous primary endpoint variable and W is a vector of p baseline covariates. A is the treatment indicator, which is 1 if the participant is randomized to the new treatment and 0 otherwise. We do not impose any parametric assumptions on the distribution of Y given A,W. The trial dataset is represented as W,A,Y∈Wn×0,1n×ℝn, where W is the domain of W. The sizes of the treatment and control groups are represented as n1 and n0, respectively. Throughout the paper, the term “asymptotic” refers to sampling n observations of O as n→∞.

Each participant is associated with two potential outcomes: Y1 under the new treatment and Y0 under control [20, 21, 22]. The estimand of interest is the causal average treatment effect (ATE), defined mathematically as:

Ψ*=EY1−Y0. (1)

without further assumptions, there is no way to estimate this causal effect because we can not observe both potential outcomes simultaneously, even with infinite draws from the Y,A,W data structure. However, there are multiple sets of assumptions that one can impose on the causal data generating process Y1,Y0,A,W so that EYa is equal to some parameter (functional) of the observed data distribution, assuming that the observed outcome is Y=YA (whichever potential outcome corresponds to observed treatment).

The most parsimonious of these is assuming simple randomization. Due to randomization, the potential outcomes Y0 and Y1 are independent of the treatment allocation A and the exposure probabilities 1>PA=a=πa>0 (for a∈0,1) are known. In this case the identifying functional becomes EYA=EEY|A,W. In much of the literature, this is called the statistical estimand (in contrast to the causal estimand). The two are identical under the identifying assumptions but the form that the statistical estimand takes depends on what the identifying assumptions are. A well‐known benefit of identification via randomization is that the randomization assumption can be enforced by design, as is done in a randomized trial. Thus the causal estimand (1) is identified by a corresponding statistical estimand:

2. (2)

where μa,W=EY|A=a,W is the conditional mean function. In the remainder of the paper we treat the identifying functional (statistical estimand) Ψ as the target parameter and focus on estimators and inference for this under simple randomization.

3. Ate Estimation Methods in Randomized Trials

In this section we explain three approaches to estimate Ψ in RCTs: the standard ANCOVA (plug‐in) estimator, prognostic score adjustment using historical data, and TMLE. These definitions are used to set up the equivalence result in Section 4.

3.1. ANCOVA Estimator

A simple linear model including an intercept and a treatment term is often used to estimate the ATE for a continuous endpoint in the pharmaceutical industry. In such a model the mean of the endpoint is modeled as EY|A,W=μA,W=β0+AβA+XβX where X consists of some arbitrary terms constructed from the covariates W. A common choice is the main‐terms regression X=W, but X may more generally contain nonlinear expansions and interactions, including with the treatment. Strictly speaking we should write XA,W to denote this dependence but X is a convenient abbreviation. Least squares is used to estimate the coefficients β (which corresponds to maximum likelihood with assumed Gaussian errors). When there are no terms in X, the estimator is often known as the unadjusted estimator, analysis of variance (ANOVA), or difference‐in‐means, and if X includes covariates the estimator is known as analysis of covariance (ANCOVA) or just regression adjustment.

If the design matrix includes no treatment–covariate interaction terms, or if the covariates are centered, then the ATE can be consistently estimated in an RCT as Ψ^=β^A, the coefficient on the treatment indicator [16]. The robust (Huber–White) standard error may typically be used for inference if some care is taken with centering the covariates [8, 23, 24, 25, 26].

While this is the standard presentation of ANCOVA, here we give a complementary account following Rosenblum and van der Laan [16] that is algebraically equivalent but reveals the close connection between ANCOVA, G‐computation, and TMLE. In this account, the ANCOVA estimate is obtained by the following plug‐in procedure:

  1. Use least squares to estimate β0 and β.

  2. Extract the counterfactual predictions using the estimated conditional mean functions μ^a,w=β^0+aβ^A+xβ^X, that is,
    Ψ^a=1n∑i=1nμ^aWi,a∈0,1. (3)
  3. Get the ATE estimate by plugging in Ψ^=Ψ^1−Ψ^0.

  4. The sampling variance of the influence function for this estimator gives a consistent estimate of the asymptotic variance,
    σ^∞2=1n∑i=1nϕ^1WiAiYi−ϕ^0(WiAiYi)2, (4)

where ϕ^aWiAiYi=1aAiπaY−μ^aWi+μ^aWi−Ψ^a. Confidence intervals and p‐values may then be constructed from the approximate standard error σ^=σ^∞/n.

Viewing ANCOVA in this light makes it clear that it is a specific case of G‐computation in the context of an RCT using a linear regression model as the estimate of the conditional mean of the outcome.

3.2. Prognostic Adjustment

The plug‐in formulation of the ANCOVA estimator illustrates that good estimation of the ATE depends on good estimation of the conditional mean μ. Indeed, adjustment works by explaining away variability in the outcome with variability in the covariates, leaving the effect of treatment more clearly visible.

The idea of prognostic adjustment is to improve this estimate with historical data while protecting from possible type I error inflation. Instead of directly using the external data in the trial analysis, the external data are used to learn a separate prediction model, the prognostic model, which predicts outcomes from covariates and possibly treatment. This model is used on the trial data to generate predictions (the “prognostic score”), which are then included as a covariate vector in a standard ANCOVA analysis.

Formally, to define a prognostic score we introduce the stochastic variable D, which is 1 if the participant comes from the new trial and 0 if the observation is from the historical data. The prognostic score is defined as the expected observed outcome conditional on the covariates

ρDW,A≔EY|W,A,D. (5)

This true expected value is called the oracle prognostic score. The trial‐specific conditional mean which we are interested in to estimate the ATE can be expressed as μA,W=ρ1W,A. Thus if the external (D=0) population is similar to the trial population, ρ0≈ρ1 and we can leverage the external data to improve estimation of μ.

Having access to historical data W~A~Y~∈Wn~×0,1n~×ℝn~ obtained for n~ participants, estimators of the prognostic scores can be obtained by applying a machine learning algorithm to this data. Usually, there are no treatment units in the historical data meaning that A=0 for all participants and only one estimator ρ^0W,0 of the prognostic score would be obtained. However, if prior treatment‐arm data are available, one may also estimate (and later adjust for) the treatment‐arm prognostic score ρ0W,1.

To estimate the treatment effect in the trial, the prognostic score is evaluated for all observations in the trial data and used as a covariate in a standard ANCOVA analysis [1, 2, 3, 4]. The prognostic score may either be used as the only adjustment covariate or in addition to some or all of the other covariates, possibly including covariates that were not inputs to the prognostic score (e.g., because they were not measured in the historical sample).

If the external and trial populations are similar, the prognostic score is likely to be a powerful and predictive summary measure which will improve estimation of the true outcome regression in the trial, reduce unexplained variance, and therefore increase power for the ATE analysis [1, 3, 4]. Any finite‐sample gain in efficiency depends on the prognostic model's ability to capture nonlinearities and interaction effects that are missed by the linear model or that would not be learnable from a (usually smaller) trial dataset. For exact statements on the requirements for efficiency gain see Schuler et al. [4], Schuler [27], Tsiatis [28], and Højbjerre‐Frandsen et al. [8].

When using external data, power gains often come at the expense of type I error control, but this is not the case for prognostic adjustment. From the perspective of the trial data‐generating process (fixing the external data), the prognostic model is a prespecified, fixed transformation of the predictors and therefore works like any other prespecified term in the ANCOVA design matrix. By this argument, adjusting for it cannot (asymptotically) incur type I error for the ATE when using, for example, Wald‐type inference based on the robust or influence‐function based standard error.

Whether to adjust for covariates besides the prognostic score is a matter of judgment. Asymptotically, more covariates cannot hurt efficiency and may substantially improve it if the prognostic model is not accurate or does not ingest all of the available covariates in the trial. Therefore when the number of raw covariates is small or the utility of the prognostic model is in doubt, raw covariates should be included. It is also sensible to include only some subset of covariates known a priori to be highly predictive. However, including too many raw covariates besides the prognostic score can hurt finite‐sample efficiency due to the increase in the “degrees of freedom” of the model. In cases where the prognostic score is thought to be a good summary and the number of raw covariates is very high, it may be sensible to adjust only for the prognostic score in the ANCOVA analysis.

3.3. MLE

Instead of leveraging historical data via an ANCOVA model to improve estimation of the conditional mean μ^, TMLE takes the more direct approach of using the trial data in combination with a more flexible and possibly more accurate estimator of μ^. In general, TMLE uses estimates μ^ from machine learning models instead of linear regression. However, this creates another problem that must be solved.

3.3.1. The Problem With Machine‐Learning Plug‐In Estimators

Recall that for the ATE we are trying to estimate Eμ1,W−μ0,W. If we could generate accurate estimates μ^≈μ, via some kind of regression, a sensible estimator would be the “plug‐in” 1n∑iμ^1Wi−μ^0Wi, the difference of the “imputed” potential means for each subject. The accuracy of that estimate is dependent, however, on the degree to which μ^≈μ. It therefore behooves us to generate μ^ using powerful machine learning methods that can capture any nonlinearities, interactions, and so forth. that are present in μ. The efficiency gains from TMLE (and similar strategies like double machine learning) come from using more accurate regression models.

Unfortunately, if μ^ comes from a generic machine learning model, the plug‐in estimator is generally too biased to allow for the construction of standard confidence intervals and p‐values. This happens because μ^ is optimized (e.g., via regularization and cross‐validation model selection) to minimize some kind of predictive metric like mean squared error, which is a combination of bias and variance. Therefore μ^ is typically biased even when machine learning is used and the bias does not reduce quickly enough with sample size to allow for standard inference. For rigorous statements on the plug‐in bias (using the von Mises expansion) one can look at [9, 28, 29], but we give an intuitive explanation below.

As a concrete example, consider fitting a lasso or ridge model for μ^a,w=α0+aαA+xα in a randomized trial and imagine that the terms x of the design matrix contain enough covariates and interactions that their linear combination can accurately model μa,w in the population. Due to the presumably large number of terms in the design matrix, regularization is required and cross‐validation will be necessary to choose the appropriate level. If the design matrix is centered, the plug‐in estimate of the treatment effect will be 1n∑μ^1Wi−μ^0Wi=α^A, the coefficient on treatment. But, due to the regularization, α^A will be shrunken (biased downwards) relative to the population value. Another way to think of this is that the graphs of the two curves w↦μ^1,w and w↦μ^0,w will be closer to each other than they should be.

To summarize and generalize from this example: all data‐adaptive, nonparametric models require some kind of regularization in order to prevent overfitting: they accept some bias in exchange for a reduction in variance. This bias is passed through to the plug‐in estimate of the treatment effect. Even if that bias disappears asymptotically (imagine decreasing the regularization as n increases), for general machine learning schemes the bias often decreases more slowly than needed for it to be negligible when calculating confidence intervals and p‐values [29].

3.3.2. TMLE Debiases Plug‐Ins

TMLE solves this problem by “updating” the outcome prediction function μ^ to a new function μ^*. The update step is done in such a way that μ^* is debiased for purposes of a plug‐in estimator. This can be thought of as a (targeted) “relaxation” of the implicit or explicit regularization used to fit μ^. As a result, TMLE allows us to collect the efficiency gains from using nonparametric regression models without paying any price in bias.

In the context of a simple trial with 1:1 randomization there is a version of the TMLE update step that is relatively easy to explain. The condition that any regression estimate μ^ would have to meet in order to be unbiased when used in a plug‐in estimator of the ATE in an RCT is

Eμ^1,W−μ^0,W=EY1−Y0=EYA=1−EYA=0 (6)

because by randomization EYa=EYA=a. Since we cannot take exact expectations in the sample to calculate EYA=1−EYA=0 we replace these terms with sample averages

1n1∑Ai=1Yi⏟Ψ^1*−1n0∑Ai=1Yi⏟Ψ^0*

This is just the unadjusted estimate of the effect, which is known to be unbiased specifically in an RCT setting (but not in an observational study). In other words, in an RCT, we would like our TML estimate to be equal on average to the unadjusted estimate. This seems redundant but it is important because we will use the updated regression models to perform inference as well as to estimate the effect: that is where the gain in efficiency will come from. The point estimate will be the same (on average) as the unadjusted one, but the confidence intervals will generally be tighter because we will use the updated regression models to calculate the SE and reduce outcome variance that is explainable with covariates. The variance for TMLE is calculated the same way as shown in Equation (4) for the ANCOVA plug‐in estimator, but using the updated machine‐learning regression μ^*, that is,

σ^∞2=1n∑i=1n11(Ai)πa(Y−μ^*(1,Wi))+(μ^*(1,Wi)−Ψ^1)−10(Ai)π0(Y−μ^*(0,Wi))+(μ^*(0,Wi)−Ψ^0)2. (7)

This is the classical expression derived by Hahn [30]. Schuler [27] reformulate this expression (see their appendix A.2) in a way that makes it clear that the variance depends critically on the mean‐squared error of μ^*. The (usually larger) standard error for the unadjusted estimate can also be calculated with the same formula, setting μ^a,W equal to the average outcomes in each treatment arm, Ψ^a*=1na∑Ai=aYi.

We have now motivated why we would like to update the outcome regression (to debias it) but we have not explained how to do so. Define A±=2A−1 and a±=2a−1, the treatment indicator mapped to −1,1. If we update the initial regression model using a single term

3.3.2. (8)

then one may algebraically verify that Eμ^*1,W−μ^*0,W=Ψ^1*−Ψ^0* as desired when n1=n0=n/2.

Recall that our problem is that bias from the regression estimate μ^ leaks into the plug‐in estimate 1n∑μ^1,W−μ^0,W. That is, either μ^0,w and μ^1,w are too close together or too far apart due to whatever regularization is applied by the learning algorithm (in the LASSO example the regularization keeps them too close together and regularizes out the treatment effect). The effect of adding the update ϵ*2a−1 is to push the two curves apart by an amount 2ϵ* (or pull them together if ϵ is negative) while otherwise leaving their shape untouched. The quantity ϵ* is engineered so that the resulting sample average distance between the two curves is exactly the unadjusted estimate of the treatment effect, as desired.

It is no coincidence that ϵ* also happens to be the empirical maximum likelihood solution to the estimation problem Y=μ^A,W+ϵA±+N0,1 (verifying this again takes some algebra, see Appendix A). Until now, our explanation of TMLE has been informal, but this observation allows us to generalize and formalize to some extent. The model which we are searching with maximum likelihood in the described update is the set of conditional densities

pϵY|A,W∼Nμ^A,W+ϵA±,1:ϵ∈R.

The fact that our updated regression is the MLE in this model is why the method is called targeted maximum likelihood (we will explain the “targeted” part shortly). We are doing maximum likelihood estimation in the “targeting” submodel shown above. In the context of such a model, let Eϵ⋅=Epϵ⋅. The model shown above has the special properties that

  1. the conditional mean at some value ϵ0 (in this case ϵ0=0) is Eε0Y|A,W=μ^A,W, the initial regression fit, and

  2. the derivative of the log‐likelihood in ϵ is given by ddϵlogpϵ=A±Y−μϵA,W where μϵA,W=EϵY|A,W.

These properties are what make the model targeted for the debiasing of the ATE in an RCT.

There is not one single definition of what a TMLE is. However, in the context of an 1:1 RCT it has been shown that updating in any parametric model pϵY|A,W:ϵ∈Rd that satisfies these two conditions will suffice for the TMLE update step in the sense of providing asymptotic semiparametric efficiency: one sets up the chosen model, finds the maximum likelihood estimate ϵ* within it, and then takes μ^*A,W=Eϵ*Y|A,W as the update. In this paper we are in the setting of a 1:1 RCT, and we will therefore consider this as our formal definition of TMLE for ATE estimation. There are more definitions of TMLEs in different contexts and for different estimands [10, 31].

Updating in a parametric model that satisfies these two conditions will make the resulting estimator be debiased the same way that our example was (using the additive normal update model) [9, 10]. When ϵ=ϵ1ϵ2…ϵd is a multidimensional parameter, the second condition generalizes to A±Y−μ^A,W being contained in the linear span of the functions ∂∂ϵjlogpϵ. This happens in particular when there is some ϵj for which ∂∂ϵjlogpϵ=A±Y−μϵA,W.

To summarize, TMLE constructs an updated outcome regression μ^* by maximizing the likelihood within a submodel chosen so that the update removes the bias relevant to the plug‐in using μ^ without targeting. We can summarize the procedure for ATE estimation in an RCT as:

  1. Obtain an initial estimate μ^ for the conditional mean functions using a working outcome model, potentially some powerful machine learning method.

  2. From μ^ obtain the predicted outcomes μ^AiWi for each participant in the study.

  3. Use MLE with the trial data and predictions to estimate ϵ* using the regression model Y=μ^A,W+ϵA±+N0,1.

  4. Use ϵ* to get the targeted predictions μ^*0,W=μ^0,W−ϵ* and μ^*1,W=μ^1,W+ϵ* for each participant in the study.

  5. Average the targeted predictions to estimate the counterfactual mean Ψ^a* for a∈0,1.

  6. Contrast on the ATE scale, that is, Ψ^1*−Ψ^0* and obtain the variance estimate using (7).

A complication to Steps 1 and 2 that we have so far not mentioned is that the initial outcome regression μ^ generally needs to be “cross‐fit” in order to assure n‐consistency of the point estimate and consistency of the standard error [32, 33, 34, 35]. This allows valid inference without additional assumptions on the regression algorithms used. One way to do this is to use a leave‐one‐out estimation scheme, where the model is fit using n−1 participants to get the prediction of the one participant being left out of the fitting procedure. v‐fold cross estimation is also valid and more sensible for large datasets. Cross‐fit estimates of the outcome regression should be used to generate both the point estimate and the estimate of the standard error. See Wenjing and van der Laan [34] and Chernozhukov et al. [32] for mathematical justification and Zivich and Breskin [35] for a digestible description and visual depiction of cross‐fitting.

Besides TMLE, augmented inverse‐propensity weighting (AIPW) is another tool for debiasing the plug‐in based on an estimate μ^ from a machine learning model. AIPW is asymptotically equivalent to TMLE and they tend to behave very similarly. Many papers have examined the relationship between these different estimators, but this is not the focus of our current work [33, 35, 36].

There are some cases where TMLE (or AIPW) do not improve efficiency over ANCOVA. If the underlying data‐generating process is well‐specified by the linear model underlying the ANCOVA, then no efficiency gain is possible, and in finite samples ANCOVA will likely have an edge. Moreover, the comparison between the estimators is asymptotic, meaning that in small samples the relative variances may not match the limiting behaviors.

To conclude, machine‐learning plug‐in estimators improve over ANCOVA by allowing for data‐adaptive, possibly nonparametric regressions that explain away more of the variance in the outcome, often leading to increased power in estimating treatment effects. However, they incur bias due to regularization. TMLE (and AIPW) remove that bias, enabling us to construct asymptotic confidence intervals and pick up the power gains without suffering inflated type I error rates.

4. Within‐Trial Prognostic Score Adjustment

Next we show that constructing a prognostic score within the trial and using it in an ANCOVA model is equivalent to performing a TMLE update in an RCT.

Clinical trials are usually small, so using large external datasets to learn a prognostic score can be a good idea [4, 8, 19]. However, if external data are not available or trustworthy, one could imagine building the prognostic model on the trial data itself to eliminate the use of historical data. Specifically, one would fit a prognostic model on the trial data by regressing Y onto A,W with machine learning methods and then predict the outcome for each participant ρ^1A,W=μ^A,W, now predicting the outcome using the actual treatment allocation. The idea is then to add the predictions as an additional covariate in the design matrix for the ANCOVA method, following the prognostic score adjustment procedure, that is, using the plug‐in procedure described in Section 3. This procedure will be referred to as within‐trial prognostic score adjustment. This procedure can be summarized as:

  1. Fit a prognostic model ρ^1A,W=μ^A,W on the trial data using a working outcome model (potentially some powerful machine learning method).

  2. From ρ^1 obtain the predicted outcomes ρ^1a,w for each participant in the study.

  3. Use MLE to estimate β=β1β2β3 using the regression model Y=β1A±+β2μ^A,W+Xβ3+N0,1. 3

  4. Then follow Step 2–4 of the plug‐in method described in Section 3.1 to obtain the ATE and variance estimate.

Within‐trial adjustment is equivalent to TMLE with a specific submodel. To see this, consider a 1:1 randomized trial with the goal of estimating the ATE. In the TMLE procedure we first introduced we updated an initial outcome regression μ^ by finding the MLE ϵ* in the model Y=ϵA±+μ^A,W+N0,1. However, we can choose another model to maximize over as long as the two conditions we stated above are satisfied (a common choice is a logistic regression update [15]). Another legitimate submodel is the linear regression Y=β1A±+β2μ^A,W+Xβ3+N0,1. The first condition is satisfied by β=0,1,0 and the second by taking the derivative with respect to β1.

The ANCOVA step of within‐trial prognostic adjustment is precisely this TMLE update, letting the in‐trial prognostic score ρ^1 play the role of the initial outcome regression μ^. Due to the equivalence between the robust standard error of the ANCOVA coefficient and the IF based standard error (Equation 7), the TMLE (IF) standard error also coincides with the within‐trial prognostic adjustment standard error from ANCOVA. Since X are the terms in an arbitrary design matrix, the equivalence holds regardless of whether covariates besides the (within‐trial) prognostic score are adjusted for in the trial analysis.

5. Discussion

Since within‐trial prognostic adjustment is a TMLE, it is a consistent estimator of the ATE and inherits other beneficial properties (e.g., efficiency if the prognostic score models the conditional mean well). Within‐trial prognostic adjustment is therefore a valid method for increasing efficiency while eliminating the dependency on historical data in RCTs. However, outside of pedagogical contexts, it should simply be called TMLE instead of being re‐branded as “within‐trial prognostic adjustment.”

While within‐trial prognostic adjustment is a TMLE, if additional covariates besides the prognostic score are adjusted for, it is not the usual TMLE defined in Section 3.3 because it includes the covariates in the update submodel as linear predictors. However, for within‐trial prognostic adjustment, including these covariates in the update is redundant because the within‐trial prognostic scores should already capture the linear trends from the covariates. In other words, we should expect the covariate update coefficients to be near zero. Thus, including them in the update step is not only unnecessary but also has no meaningful effect. This is briefly demonstrated by a simulation study in Appendix B. So, while it is valid to use within‐trial prognostic score adjustment with additional covariates, there is no reason to reinvent the wheel. We therefore advocate for doing the regular TMLE already available in various software packages, which is equivalent to within‐trial prognostic adjustment for only the prognostic score. In terms of cross‐fitting, cross‐fitting the prognostic score in a within‐trial prognostic score adjustment is identical to cross‐fitting the outcome regression in TMLE. Therefore, cross‐fit, within‐trial prognostic adjustment is a standard cross‐fit TMLE [34].

Pre‐specification is important to bound type I error rates for all trial analyses and TMLE is no different [23, 37]. For TMLE and within‐trial prognostic score adjustment, what should be prespecified is the library of candidate models used for the outcome regression and the procedure for fitting, tuning, or selecting among them [38].

One could still consider including an additional prognostic score built from historical data to the TMLE or within‐trial procedures as proposed by Liao et al. [19]. Liao et al. [19] show that this can lead to further efficiency gains for small trials in particular. Specifically, we would expect to see a gain in efficiency when the historical data is similar to the new trial and when the amount of historical data is large compared to the new trial. Therefore, it is not either/or; you can combine historically‐built prognostic scores with TMLE (which is essentially the within‐trial procedure). The comparison of the within‐trial procedure and the standard prognostic score adjustment method has been examined in simulations by Elefsinioti et al. [39].

Funding

This work was supported by Innovationsfonden (2052‐00044B).

Conflicts of Interest

The authors declare no conflicts of interest.

Acknowledgments

This research was supported by Innovation Fund Denmark (grant number 2052‐00044B).

Appendix A. Determining the TMLE Updating Step

In this section we show that ϵ* in (8) is the maximum likelihood solution to the estimation problem Y=μ^A,W+ϵA±+N0,1. We define Ui=Yi−μ^AiWi and U=U1U2…Un⊤. Then regressing U on A± the design matrix X has rows x=a±,i. Thus, we have ε^=X⊤X−1X⊤u. First notice that X⊤X−1=n−1 using A± instead of A. Therefore, we have

Appendix A. (A1)

Appendix B. Simulation Study

Here we examine the differences between within‐trial prognostic covariate adjustment and TMLE that may occur due to the within‐trial procedure including the covariates in the update submodel as linear predictors. This is done in different data generating scenarios and across different data set sizes. We simulate data based on the data generating process described in Højbjerre‐Frandsen et al. [8], but since we are only comparing the within‐trial procedure and TMLE we do not simulate historical data and therefore not distributional shifts. For completeness we will restate the data generating process and scenarios. The code is available here.

The data generating process for the current trial is represented in the structural causal model in (B1).

W1,W2∼Unif−2,1W3∼N0,3W4∼Exp0.8W5∼Γ5,10W6,W7∼Unif1,2A∼Bern0.5Ya∣W,U=maW,U+N0,1.3Y=AY1+1−AY0. (B1)

In the homogeneous treatment effect scenario we have

m0W,U=4.1⋅sinW2+1.5⋅IW4>0.25+1.5⋅sinW5+1.4⋅IW3>2.5

and m1W,U=ATE+m0W,U. In the heterogeneous treatment effect scenario we use m0 and,

m1W,U=4.3⋅sinW22+1.3⋅IW4>0.25+4.1⋅IW2>0⋅sinW5+1.6⋅sinW6+1.4⋅IW3>2.5.

In both scenarios ATE=0.84.

We fix the current trial sample size n = 200, and examine both the homogeneous and heterogeneous data generating scenario. We also examine the effect of varying the data set size by setting n=50,60,70,…,200,225,250,275,300,325,350,375,400. For all scenarios, we have N=250 runs of the simulations. For estimation of the ATE we consider within‐trial prognostic score adjustment and TMLE. For the prognostic model estimation and the initial outcome model estimation for TMLE we use the Discrete Super Learner specified as in Højbjerre‐Frandsen et al. [8].

Figure B1 shows the SE estimates for the estimators in the different data generating scenarios. The filled dots represent the mean of the estimated SE and the stars represents the empirically estimated SE of the ATE estimates. Unsurprisingly, the performance of linear within‐trial prognostic score adjustment is similar to the TMLE across the two scenarios, but it is not identical as claimed in Section 5 due to the covariates being included in the submodel as linear predictors.

FIGURE B1.

FIGURE B1

Standard error estimates for different scenarios. Dots represent the mean of the estimated SE, while stars represent the empirically estimated SE of the ATE estimates across the 250 simulated pairs of datasets.

In Figure B2 the empirically estimated power and coverage is displayed across different data set sizes in the heterogeneous scenario. The TMLE method and within‐trial prognostic score adjustment align closely for all n further supporting the claim in Section 5. The coverage is approximately 95% which is shown in Figure B2B.

FIGURE B2.

FIGURE B2

Empirical power and coverage with increasing sample size (n~=10n). (A) Shows the empirically estimated power for different estimators as a function of the sample size (n). (B) Displays the empirically estimated coverage for the same estimators across varying sample sizes with a significance level of 5% (dotted black line at 95%).

Endnotes

1

The authors of Schuler et al. [4] were all employed at Unlearn.AI at the time of publication.

2

That is, this paper is situated firmly in the population framework. There is a large, parallel body of literature where the covariates (and potential outcomes) are assumed to be fixed, with all the randomness coming from the treatment assignment. That framework is sometimes called “design‐based inference” and we do not address it here.

3

Recall that X are variables in an arbitrary design matrix. If adjusting for all main‐terms covariates in addition to the (within‐trial) prognostic score, X=W. If adjusting only for the prognostic score, then X may be empty and this term is omitted.

Data Availability Statement

The code that generated the data that support the findings of this study (see Appendix B) is openly available at https://github.com/NNEHFD/within_trial_prog.

References

  • 1. Holzhauer B. and Adewuyi E. T., ““Super‐Covariates”: Using Predicted Control Group Outcome as a Covariate in Randomized Clinical Trials,” Pharmaceutical Statistics 22, no. 6 (2023): 1062–1075, 10.1002/pst.2329. [DOI] [PubMed] [Google Scholar]
  • 2. Tukey J. W., “Tightening the Clinical Trial,” Controlled Clinical Trials 14, no. 4 (1993): 266–285. [DOI] [PubMed] [Google Scholar]
  • 3. Deng A., Xu Y., Kohavi R., and Walker T., “Improving the Sensitivity of Online Controlled Experiments by Utilizing Pre‐Experiment Data,” Proceedings of the Sixth ACM International Conference on Web Search and Data Mining (2013): 123–132. [Google Scholar]
  • 4. Schuler A., Walsh D., Hall D., Walsh J., and Fisher C., “Increasing the Efficiency of Randomized Trial Estimates via Linear Adjustment for a Prognostic Score,” International Journal of Biostatistics 18 (2022): 329–356, 10.1515/ijb-2021-0072. [DOI] [PubMed] [Google Scholar]
  • 5. Hill J. L., “Bayesian Nonparametric Modeling for Causal Inference,” Journal of Computational and Graphical Statistics 20, no. 1 (2011): 217–240, 10.1198/jcgs.2010.08162. [DOI] [Google Scholar]
  • 6. Kaplan D., Chen J., Yavuz S., and Lyu W., “Bayesian Dynamic Borrowing of Historical Information With Applications to the Analysis of Large‐Scale Assessments,” Psychometrika 88, no. 1 (2023): 1–30, 10.1007/s11336-022-09869-3. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7. Lim J., Walley R., Yuan J., et al., “Minimizing Patient Burden Through the Use of Historical Subject‐Level Data in Innovative Confirmatory Clinical Trials: Review of Methods and Opportunities,” Therapeutic Innovation & Regulatory Science 52, no. 5 (2018): 546–559. [DOI] [PubMed] [Google Scholar]
  • 8. Højbjerre‐Frandsen E., Lerbech Jeppesen M., Kuhr Jensen R., Dethlefsen C., and Waagepetersen R., “A Tutorial on Using Prognostic Covariate Adjustment for Linear Models to Gain Power in RCTs,” Pharmaceutical Statistics 24, no. 5 (2025): e70028, 10.1002/pst.70028. [DOI] [PubMed] [Google Scholar]
  • 9. Schuler A. and van der Laan M. J., “Introduction to Modern Causal Inference,” 2022, accessed August 15, 2025, https://alejandroschuler.github.io/mci.
  • 10. van der Laan M. J. and Rubin D., “Targeted Maximum Likelihood Learning,” International Journal of Biostatistics 2, no. 1 (2006), 10.2202/1557-4679.1043. [DOI] [Google Scholar]
  • 11. Balzer L. B., Cai E., Godoy Garraza L., and Amaranath P., “Adaptive Selection of the Optimal Strategy to Improve Precision and Power in Randomized Trials,” Biometrics 80, no. 1 (2024): ujad034, 10.1093/biomtc/ujad034. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12. Balzer L. B., van der Laan M. J., Petersen M. L., and the SEARCH Collaboration , “Adaptive Pre‐Specification in Randomized Trials With and Without Pair‐Matching,” Statistics in Medicine 35, no. 25 (2016): 4528–4545, 10.1002/sim.7023. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13. Cai W. and van der Laan M. J., “One‐Step Targeted Maximum Likelihood Estimation for Time‐To‐Event Outcomes,” Biometrics 76, no. 3 (2020): 722–733, 10.1111/biom.13172. [DOI] [PubMed] [Google Scholar]
  • 14. Chen D., Petersen M. L., Rytgaard H. C., et al., “Beyond the Cox Hazard Ratio: A Targeted Learning Approach to Survival Analysis in a Cardiovascular Outcome Trial Application,” Statistics in Biopharmaceutical Research 15, no. 3 (2023): 524–539, 10.1080/19466315.2023.2173644. [DOI] [Google Scholar]
  • 15. Gruber S. and van der Laan M. J., “A Targeted Maximum Likelihood Estimator of a Causal Effect on a Bounded Continuous Outcome,” International Journal of Biostatistics 6, no. 1 (2010), 10.2202/1557-4679.1260. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16. Rosenblum M. and van der Laan M. J., “Simple, Efficient Estimators of Treatment Effects in Randomized Trials Using Generalized Linear Models to Leverage Baseline Variables,” International Journal of Biostatistics 6, no. 1 (2010), 10.2202/1557-4679.1138. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17. van der Laan M. J. and Gruber S., “Collaborative Double Robust Targeted Maximum Likelihood Estimation,” International Journal of Biostatistics 6, no. 1 (2010), 10.2202/1557-4679.1181. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18. van der Laan M., “A Generally Efficient Targeted Minimum Loss Based Estimator Based on the Highly Adaptive Lasso,” International Journal of Biostatistics 13, no. 2 (2017): 20150097, 10.1515/ijb-2015-0097. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19. Liao L. D., Højbjerre‐Frandsen E., Hubbard A. E., and Schuler A., “Prognostic Adjustment With Efficient Estimators to Unbiasedly Leverage Historical Data in Randomized Trials,” International Journal of Biostatistics 21 (2025): 1–15. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20. Imbens G. W., “Nonparametric Estimation of Average Treatment Effects Under Exogeneity: A Review,” Review of Economics and Statistics 86, no. 1 (2004): 4–29. [Google Scholar]
  • 21. Petersen M. L. and van der Laan M. J., “Causal Models and Learning From Data: Integrating Causal Modeling and Statistical Estimation,” Epidemiology 25, no. 3 (2014): 418–426, http://www.jstor.org/stable/24759134. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22. Sekhon J. S., “Chapter 11: The Neyman‐Rubin Model of Causal Inference and Estimation via Matching Methods,” in The Oxford Handbook of Political Methodology, ed. Box‐Steffensmeier J. M., Brady H. E., and Collier D. (Oxford University Press, 2008), 271–299. [Google Scholar]
  • 23. Center for Drug Evaluation and Research & Center for Biologics Evaluation and Research , “Adjusting for Covariates in Randomized Clinical Trials for Drugs and Biological Products – Guidance for Industry,” 2023, accessed October 31, 2025, https://www.fda.gov/media/148910/download.
  • 24. Long J. S. and Ervin L. H., “Using Heteroscedasticity Consistent Standard Errors in the Linear Regression Model,” American Statistician 54, no. 3 (2000): 217–224, 10.1080/00031305.2000.10474549. [DOI] [Google Scholar]
  • 25. MacKinnon J. G. and White H., “Some Heteroskedasticity‐Consistent Covariance Matrix Estimators With Improved Finite Sample Properties,” Journal of Econometrics 29, no. 3 (1985): 305–325, 10.1016/0304-4076(85)90158-7. [DOI] [Google Scholar]
  • 26. Ye T., Shao J., Yi Y., and Zhao Q., “Toward Better Practice of Covariate Adjustment in Analyzing Randomized Clinical Trials,” Journal of the American Statistical Association 118, no. 544 (2023): 2370–2382, 10.1080/01621459.2022.2049278. [DOI] [Google Scholar]
  • 27. Schuler A., “Designing Efficient Randomized Trials: Power and Sample Size Calculation When Using Semiparametric Efficient Estimators,” International Journal of Biostatistics 18, no. 1 (2022): 151–171, 10.1515/ijb-2021-0039. [DOI] [PubMed] [Google Scholar]
  • 28. Tsiatis A., Semiparametric Theory and Missing Data. Springer Series in Statistics (Springer, 2007). [Google Scholar]
  • 29. Kennedy E. H., “Semiparametric Doubly Robust Targeted Double Machine Learning: A Review,” 2022, https://arxiv.org/abs/2203.06469.
  • 30. Hahn J., “On the Role of the Propensity Score in Efficient Semiparametric Estimation of Average Treatment Effects,” Econometrica 66 (1998): 315–331. [Google Scholar]
  • 31. Van der Laan M. J. and Rose S., Targeted Learning: Causal Inference for Observational and Experimental Data, vol. 4 (Springer, 2011). [Google Scholar]
  • 32. Chernozhukov V., Chetverikov D., Demirer M., et al., “Double/Debiased Machine Learning for Treatment and Causal Parameters,” 2016, arXiv preprint arXiv:1608.00060.
  • 33. Ellul S., Carlin J. B., Vansteelandt S., and Moreno‐Betancur M., “Causal Machine Learning Methods and Use of Sample Splitting in Settings With High‐Dimensional Confounding,” 2024, arXiv preprint arXiv:2405.15242. [DOI] [PMC free article] [PubMed]
  • 34. Wenjing Z. and van der Laan M. J., “Asymptotic Theory for Cross‐Validated Targeted Maximum Likelihood Estimatio. U.C. Berkeley Division of Biostatistics Working Paper Series. no. 273,” 2010, https://biostats.bepress.com/ucbbiostat/paper273.
  • 35. Zivich P. N. and Breskin A., “Machine Learning for Causal Inference: On the Use of Cross‐Fit Estimators,” Epidemiology 32, no. 3 (2021): 393–401. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36. Yadlowsky S., “Explaining Practical Differences Between Treatment Effect Estimators With High Dimensional Asymptotics,” 2022, arXiv preprint arXiv:2203.12538.
  • 37. Committee for Medicinal Products for Human Use , “Guideline on Adjustment for Baseline Covariates in Clinical Trials,” 2015, accessed October 31, 2025, https://www.ema.europa.eu/en/documents/scientific‐guideline/guideline‐adjustment‐baseline‐covariates‐clinical‐trials_en.pdf.
  • 38. Balzer L. B., van der Laan M. J., and Petersen M. L., “Machine Learning to Optimize Precision in the Analysis of Randomized Trials: A Journey in Pre‐Specified, Yet Data‐Adaptive Learning,” 2025, arXiv preprint arXiv:2512.13610. [DOI] [PMC free article] [PubMed]
  • 39. Elefsinioti A., Ahrens M., Voss S., et al., “Enhancing Treatment Effect Estimation in Clinical Trials Using Machine Learning: A Within‐Study Prognostic Score Approach,” 2025, accessed October 31, 2025, https://www.psiweb.org/docs/default‐source/conference/2025‐conference‐slides/wednesday‐11‐june/2‐enhancing‐treatment‐effect‐estimation‐in‐clinical‐trials‐using‐machine‐learning‐a‐within‐study‐prognostic‐score‐approach‐antigoni‐elefsinioti.pdf?sfvrsn=e03aafdb_2.

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

The code that generated the data that support the findings of this study (see Appendix B) is openly available at https://github.com/NNEHFD/within_trial_prog.


Articles from Pharmaceutical Statistics are provided here courtesy of Wiley

RESOURCES