Tutorials › Propensity Score Matching and Instrumental Variables › Prespecifying The Analysis Strategy

Target-Trial Protocols · Tutorial 93 of 699

Prespecifying The Analysis Strategy

Learn to turn the protocol’s estimand into a transparent, auditable analysis plan with advance rules for estimation, uncertainty, diagnostics, and contingencies.

Advanced 11 min read

What You'll Learn

  • Separate the target population and causal contrast from the estimator used to estimate them.
  • Specify how treatment deviations and censoring will be handled in the primary analysis.
  • Prespecify the primary effect measure, estimator, uncertainty summary, and reporting units.
  • Define diagnostics and contingency rules before examining outcome results.
  • Distinguish planned sensitivity analyses from outcome-driven changes to the analysis.

Why Prespecify the Analysis?

A target-trial protocol is not complete when it names a population, treatment strategies, follow-up period, and causal contrast. It must also say how the analysis will estimate that contrast. Without an advance plan, analysts can make seemingly reasonable choices after seeing the results: changing the outcome scale, dropping a difficult subgroup, selecting a model because it gives a smaller standard error, or reporting only the analysis with the preferred conclusion. Such flexibility makes results harder to interpret and can make nominal uncertainty summaries misleading.

Prespecification does not mean that one estimator is universally best, nor does it guarantee that the chosen analysis will be feasible or unbiased. It means recording the primary choices, their rationale, and rules for foreseeable problems before examining outcome results. The protocol should distinguish the scientific target from the statistical machinery used to estimate it.

Definition: A prespecified analysis strategy is an advance description of the population to be analyzed, the primary estimand and effect measure, the estimator and its assumptions, the handling of censoring and treatment deviations, the uncertainty summary, planned diagnostics, and any permitted sensitivity analyses or contingency rules. The primary strategy is not changed merely because another analysis gives a more favorable result.

Specify the Target Before the Estimator

The analysis plan should first restate the target population and causal contrast in operational terms. State who contributes to the target, which treatment strategies are compared, what outcome is measured, and at what follow-up time. Then name the effect measure: for example, a mean difference in outcome units, a risk difference in percentage points, or a risk ratio. These are different estimands, not interchangeable ways to report one number.

For a binary treatment \(A\), let \(Y^1\) and \(Y^0\) denote the outcomes that would be observed under the two specified strategies. For a population \(T\), a mean-difference estimand can be written as:

$$ \psi_T = E(Y^1-Y^0\mid T) $$

An estimator is a rule for using the observed data to estimate \(\psi_T\). The estimand does not change just because a different estimator is chosen. Conversely, changing the target population, outcome definition, follow-up horizon, or contrast can change the estimand even if the same software and model are used.

In observational data, a causal interpretation generally requires consistency, conditional exchangeability given the measured baseline covariates, and positivity for the treatment strategies within the target population. In words, observed outcomes must correspond to the specified strategies; the measured covariates must suffice to control confounding; and both strategies must be possible across the covariate patterns represented in the target. The analysis plan should state which assumptions support its causal interpretation. A fitted model or a favorable diagnostic does not, by itself, establish these assumptions.

Worked Example: Fixing the Target and Contrast

Hypothetical protocol. Investigators plan to compare initiation of Drug A with initiation of Drug B among adults newly eligible for either treatment. The endpoint is a symptom score, in points, at 12 weeks. The protocol targets eligible adults in the participating clinics during a specified calendar period.

The planned estimand is the mean 12-week score under Drug A minus the mean 12-week score under Drug B in that target population. Suppose, solely to make the definition concrete, the target population’s two counterfactual mean scores are 14.2 and 16.0 points. Then:

$$ \psi_T = 14.2 - 16.0 = -1.8\text{ points} $$

The negative value means the mean score under Drug A is 1.8 points lower than under Drug B; whether that difference is clinically important requires a separate clinical interpretation. These hypothetical counterfactual means illustrate the estimand, not an estimate obtainable directly from the observed data.

The protocol can next name its primary estimator, such as a prespecified covariate-adjusted approach, and state the assumptions needed for it to estimate this target. It should not redefine the population as “patients with complete data” after seeing which records have outcomes unless that population was itself the intended target.

Write Down the Primary Analysis Decisions

A useful plan is specific enough that another analyst could identify the primary analysis without asking which result the investigators prefer. At minimum, document the following decisions.

  • Analysis population: State how eligibility and time zero determine who enters the analysis, and whether the target is a finite cohort or a broader population.
  • Primary contrast and measure: Name the treatment strategies, outcome, follow-up horizon, target population, and effect scale.
  • Estimator: Identify the primary estimation approach and the baseline variables or model components it uses. Give a rationale tied to the design and estimand.
  • Censoring and unavailable outcomes: State what counts as censoring, how the primary analysis will address it, and what assumptions that approach requires.
  • Treatment deviations: State whether the primary contrast concerns assignment or adherence to the specified strategies, and how deviations affect inclusion or analysis.
  • Uncertainty and reporting: Name the standard-error or interval procedure, confidence level, any hypothesis test and significance level, and the units used in reporting.
  • Diagnostics and contingencies: Specify checks relevant to the method and what will happen if a prespecified condition is not met.

These items should agree. For example, a protocol should not define an assignment-strategy contrast and then silently exclude people who later stop their assigned treatment. Nor should a primary estimator target a matched subset while the stated estimand is the effect in all eligible people, unless the analysis includes a justified procedure for connecting those targets.

Deviations, Censoring, and Uncertainty

Treatment deviations and censoring are distinct. A deviation occurs when a person’s treatment history departs from the specified strategy. Censoring occurs when outcome follow-up ends before the planned horizon or the outcome is otherwise not observed as planned. The protocol should say how each is handled, rather than treating every departure from the ideal data pattern as the same problem.

The planned handling depends on the contrast. An assignment-strategy contrast asks about outcomes under assignment to strategies, regardless of later adherence; a strategy-adherence contrast asks about following the strategies as specified. These questions require different analysis rules. The primary rule should be stated before outcomes are inspected. If censoring is expected, identify the planned approach and its identifying assumptions, including whether measured information is sufficient to account for differences in who remains observed. The exact method must suit the data and estimand; a protocol should not imply that a statistical adjustment automatically removes bias from unmeasured causes of censoring or outcome.

Uncertainty summaries also need to match the estimator and target. A confidence interval should use a standard error or variance procedure appropriate to the design and estimation steps, including any matching, weighting, or model fitting that contributes to the estimate. Where a data-adaptive procedure changes the analyzed target, uncertainty should reflect that feature rather than treating the final sample or matched set as if it had been fixed in advance. State whether the primary report will include a confidence interval, a p-value, or both. If a test is planned, specify \(H_0\), \(H_a\), and \(\alpha\); do not select a one-sided or two-sided test after seeing the direction of the estimate.

Worked Example: Prespecifying a Censoring Rule

Hypothetical data. A protocol plans a 12-week outcome comparison among 80 eligible initiators in each treatment group. Before outcome analysis, the team specifies that it will report the number and proportion without an observed 12-week outcome by group and use its named primary censoring-adjustment procedure if follow-up ends early. Assume the prespecified record review finds 8 such outcomes missing in the Drug A group and 14 in the Drug B group.

The observed proportions without a 12-week outcome are:

$$ \frac{8}{80}=0.100=10.0\%, \qquad \frac{14}{80}=0.175=17.5\% $$

Thus, 10.0% of the Drug A group and 17.5% of the Drug B group lack the planned outcome. The difference in these observed proportions is \(17.5\%-10.0\%=7.5\) percentage points. This is a diagnostic description, not an estimate of the treatment effect.

The protocol’s advance rule is important here: the unequal proportions prompt reporting and the planned censoring analysis; they do not license choosing whichever censoring method produces the preferred treatment estimate. The censoring-adjusted estimate still depends on its stated assumptions. If the needed information is unavailable or the method cannot be implemented as planned, the team should report that limitation and follow the protocol’s contingency rule rather than silently changing the target.

Diagnostics and Contingency Rules

Diagnostics assess whether the planned analysis is behaving as expected; they do not prove that causal assumptions hold. The relevant checks depend on the estimator. A plan may include checks of covariate balance after a matching or weighting procedure, overlap in treatment probabilities, convergence of a fitted model, the amount and pattern of censoring, and the number of observations contributing to each estimate. The protocol should say what will be reported and what action follows a serious problem.

A contingency rule should be defined before results are known. For example, if a prespecified estimator fails to converge, the protocol might name a fallback estimator and explain whether it targets the same estimand. If a key diagnostic signals inadequate support for estimating the target, the planned response might be to report that the primary estimate is not reliably identified from the available data, rather than to redefine the population after seeing the effect estimate. The choice depends on the scientific question, but the rule must not be “try alternatives until one gives the desired answer.”

1
Freeze the scientific target.
Record the population, treatment contrast, outcome, follow-up horizon, and effect measure.
2
Name the primary estimator.
Specify the analysis procedure and the assumptions that support its interpretation for the stated target.
3
Set rules for incomplete follow-up and deviations.
Distinguish censoring from treatment departures and state how each affects the primary analysis.
4
Prespecify uncertainty and checks.
Name the interval or test procedure, diagnostics, and actions if planned conditions are not met.
5
Label deviations from the plan.
Document any necessary change, its timing and reason, and separate the resulting analysis from the primary result.

Worked Uncertainty Summary

For an estimator with an approximately normal sampling distribution and a valid estimated standard error \(SE\), a two-sided 95% confidence interval is commonly calculated as estimate \(\pm 1.96SE\). This approximation requires that the normal-based interval be appropriate for the estimator and sample size; it is not a universal interval formula. Its use should therefore be specified and justified in the analysis plan.

The calculation follows directly from the standard-normal central 95% range, approximately \([-1.96,1.96]\). If the estimation error divided by its standard error is approximately standard normal, then the interval formed by adding and subtracting \(1.96SE\) captures the target in about 95% of repeated samples under the model and assumptions.

Worked Example: Reporting a Prespecified Risk Difference

Hypothetical analysis output. Suppose a prespecified adjusted analysis estimates a 12-week event risk of 0.12 under Drug A and 0.18 under Drug B in the target population. The primary estimand is the risk difference, Drug A minus Drug B. The estimator’s prespecified standard-error procedure gives \(SE=0.025\). Assume the plan specifies a two-sided, normal-based 95% interval and that its approximation is suitable for this analysis.

The estimated risk difference is:

$$ \widehat{\psi}_T=0.12-0.18=-0.06 $$

This is a 6-percentage-point lower estimated risk under Drug A than under Drug B. The interval is:

$$ -0.06 \pm 1.96(0.025) = -0.06 \pm 0.049 = (-0.109,\,-0.011) $$

On the risk-difference scale, the 95% interval runs from a 10.9-percentage-point reduction to a 1.1-percentage-point reduction under Drug A. Under repeated sampling and the analysis assumptions, the interval procedure would cover the target risk difference about 95% of the time. This is not a 95% probability statement about the fixed target parameter being inside this particular interval.

The result is reported on the prespecified scale and in context. It should not be replaced in the primary report by a risk ratio or a subgroup result just because that alternative appears more striking.

Primary, Secondary, and Sensitivity Analyses

A primary analysis answers the protocol’s main question. Secondary analyses address additional questions named in advance, such as a different outcome scale or a prespecified subgroup. Sensitivity analyses examine how results change under alternative defensible assumptions or analytic choices. Labeling an analysis “sensitivity” does not make an arbitrary change informative: the alternative should have a rationale, and its relationship to the primary estimand should be explained.

A comparison of results can be useful even when they differ. A large change after using an alternative censoring assumption, for example, signals that the conclusion depends on that assumption. It does not establish which estimate is correct. The primary analysis remains the one specified in advance, while alternative results help describe robustness and limitations.

Analysis elementPrimary planWhat should not be chosen after seeing results
Target populationEligibility and target fixed by the protocolA convenient subgroup selected because its estimate is favorable
Effect measureOne named primary scale with unitsReporting only the scale with the preferred appearance
Censoring and deviationsAdvance rules for each, aligned with the contrastExcluding inconvenient records without a stated rule
UncertaintyAppropriate prespecified interval or test procedureChanging methods until a desired interval or p-value appears
ContingenciesDefined responses to feasibility or diagnostic problemsRedefining the estimand without clearly reporting the change

Common Pitfall: Treating Prespecification as a Guarantee

A common mistake is to reason, “We wrote the analysis plan before looking at the results, so the estimate must be unbiased.” Prespecification limits outcome-driven selection; it does not make a misspecified model correct, create overlap where none exists, ensure that all confounders were measured, or remove bias from informative censoring. The correction is to distinguish protection against selective analysis from identification and estimation assumptions. Both matter, and neither substitutes for the other.

Another mistake is to treat every departure from the primary plan as misconduct. Data problems sometimes require a change. The appropriate response is transparent documentation: what changed, why it changed, whether the change was made before or after outcome results were examined, and how the changed analysis relates to the original estimand. Do not present an outcome-informed modification as if it had been the original plan.

Key takeaway: Prespecify the target, primary estimator, rules for censoring and treatment deviations, uncertainty summary, diagnostics, and contingencies as one coherent strategy. Report deviations transparently, and do not confuse a prespecified procedure with proof that its assumptions hold.

Check Your Understanding

Answer each question using the distinction between a scientific target and the analysis used to estimate it.

  1. A protocol names the mean outcome difference at 12 weeks in all eligible people, but after seeing the results reports only the effect among participants with complete follow-up. What changed, and why is this not simply a harmless estimator choice?
  2. A study has 12 missing outcomes among 100 people in one group and 20 among 100 in the other. Calculate each missing-outcome proportion and their difference in percentage points.
  3. A prespecified estimate is \(-2.0\) outcome points with \(SE=0.75\). Using a two-sided normal-based 95% interval, calculate the interval and give its contextual interpretation.
  4. Name two reasons why prespecification alone does not guarantee an unbiased causal estimate.
  5. What should investigators do if a planned estimator fails to converge and the protocol names a fallback estimator?

Solutions. (1) The reported complete-follow-up analysis may target a selected subset rather than all eligible people; changing the analysis population can change the estimand, and the change was made after observing results. (2) The proportions are \(12/100=12.0\%\) and \(20/100=20.0\%\); the difference is \(20.0\%-12.0\%=8.0\) percentage points. (3) The interval is \(-2.0\pm1.96(0.75)=-2.0\pm1.47=(-3.47,-0.53)\) points. Under the assumptions supporting this interval, the data are compatible with a mean reduction of 0.53 to 3.47 points for the first strategy relative to the second, when the contrast is defined in that order. (4) For example, confounding may remain because relevant causes were not measured, or censoring may depend on unmeasured outcome-related factors; a prespecified model can also be misspecified. (5) Apply the named fallback according to its stated conditions, report the failure and fallback transparently, and explain whether it targets the same estimand; do not select a replacement based on which result is preferred.

Clinical Biostats