Tutorials › Marginal Structural Models › Artificial Censoring for Strategy Deviations

Target Trial Emulation · Tutorial 451 of 501

Artificial Censoring for Strategy Deviations

Learn to define the first strategy deviation precisely, distinguish it from loss to follow-up, and derive how adherence weights can recover a per-protocol contrast under explicit assumptions.

Intermediate 10 min read

What You'll Learn

  • Define the artificial censoring indicator from a strategy’s decision rules.
  • Specify the timing of censoring when treatment and outcomes occur within the same interval.
  • Distinguish strategy deviation from ordinary loss to follow-up and administrative end of follow-up.
  • Calculate inverse-probability adherence weights in simple examples.
  • State and derive the assumptions behind a weighted per-protocol estimate.
  • Diagnose when adherence probabilities make the weighted analysis unstable or unsupported.

Why a Strategy Deviation Changes Follow-Up

In a target trial emulation, a treatment strategy is an operational rule for which actions are compatible with the assigned strategy at each decision time. A participant’s observed treatment can cease to follow that rule. To estimate the effect of following the strategy, the analysis then stops counting that participant’s follow-up for that strategy at the first incompatible action. This is artificial censoring: an analysis rule, not necessarily a real-world loss of observation.

After cloning participants to represent different strategies, the same person may contribute a record to more than one strategy. Each clone is evaluated against its assigned rule. A person can therefore remain uncensored for one clone and be artificially censored for another. The per-protocol estimand and the strategy rules determine which actions count as deviations; censoring is not a general label for treatment change.

Definition: Let \(A_{it}\) be person \(i\)’s treatment at decision time \(t\), and let \(H_{it}\) be the measured history available just before that decision. For strategy \(d\), let \(\mathcal{A}_t^d(H_{it})\) be the set of actions allowed by the strategy at that history. Define \(C_{i0}^d=1\) and $$ C_{i,t+1}^d=C_{it}^d\,I\{A_{it}\in\mathcal{A}_t^d(H_{it})\}. $$ Here \(C_{it}^d=1\) means clone \(i\) is still compatible with strategy \(d\) at the start of decision time \(t\). It is artificially censored at the first decision for which its observed action is not allowed.

For a deterministic strategy, the allowed set may contain just one action. For example, “continue treatment at every visit” requires \(A_{it}=1\) at each specified visit. A rule that permits either of two clinically acceptable doses has a larger allowed set. The operational definition must be explicit about visit windows, grace periods, and whether switching or stopping is allowed.

The timing convention matters. Suppose the outcome is assessed before a treatment decision at time \(t\). An event assessed then belongs to follow-up even if the participant makes an incompatible choice afterward. If treatment is chosen first and the next outcome interval follows, an incompatible choice censors that clone before the interval begins. The protocol must establish this ordering; otherwise the same event can be wrongly included or excluded.

Worked Example: Continuing Treatment at Each Visit

A strategy requires treatment at baseline and at the start of months 1 and 2. A participant initiates at baseline, continues at month 1, and stops at month 2. Assume each month’s outcome is assessed at the end of the month, after that month’s treatment decision.

At baseline, \(A_{i0}=1\) is allowed, so \(C_{i1}^d=1\). At month 1, \(A_{i1}=1\) is also allowed, so \(C_{i2}^d=1\). At month 2, stopping is incompatible, so \(C_{i3}^d=0\). This clone contributes outcome follow-up through the interval preceding the month-2 decision, but not to the subsequent interval. It is not retrospectively censored at baseline or month 1.

If instead the month-2 outcome were assessed before the month-2 treatment decision, that outcome would be counted before artificial censoring. The decision-time ordering, not the calendar label alone, determines which follow-up is retained.

Artificial Censoring Is Not Loss to Follow-Up

Ordinary loss to follow-up occurs when the study can no longer ascertain a participant’s outcome or subsequent history. Artificial censoring occurs when the data may still be available, but a clone’s observed actions no longer satisfy its assigned strategy. One person can experience either event or both, and the two indicators should be recorded separately.

EventWhy follow-up ends for this analysisExample
Artificial censoringThe observed action violates the assigned strategy rule.A clone assigned to sustained treatment stops treatment.
Loss to follow-upThe outcome or later history can no longer be ascertained.A participant withdraws and cannot be contacted.
Administrative endThe protocol’s observation window ends.The prespecified 12-month endpoint is reached.

If a participant both deviates and later becomes unreachable, the strategy-specific clone is already artificially censored at the deviation. Conversely, a participant who remains adherent but becomes unreachable has not deviated; the missing follow-up is ordinary loss to follow-up. Administrative end at the planned endpoint is not a strategy deviation. Nor should a clinical event automatically be called censoring: whether it is an outcome, a competing event, or a censoring event depends on the estimand and protocol.

Worked Example: A Grace Period for Initiation

Consider a strategy that requires starting treatment by day 30, while a comparison strategy requires no treatment during those 30 days. The treatment initiation time is recorded daily. A participant who starts on day 18 is compatible with the initiation strategy through day 18; a participant who has not started by day 30 becomes incompatible with it at the end of the allowed window. The comparison-strategy clone becomes incompatible on the day its participant starts treatment.

The day-30 rule is not the same as censoring every initiation-strategy clone that is untreated at baseline. That would remove participants who are still within the permitted grace period. Nor should the initiation strategy’s clone remain compatible after day 30 if the participant never starts. The rule is applied to each clone’s observed history against its own assigned strategy.

If a participant is lost on day 12 before either strategy’s compatibility can be determined through day 30, that is loss to follow-up at day 12, not a known deviation. The analysis records the two reasons separately rather than treating all incomplete follow-up as artificial censoring.

Formal Rule and Its Immediate Consequence

The recursive definition has a direct interpretation: a clone is retained at time \(t\) exactly when every action it has taken so far was allowed. This makes artificial censoring a first-deviation rule rather than a judgment based on a later treatment history.

Result: For \(t\geq 1\), $$ C_{it}^d=\prod_{s=0}^{t-1} I\{A_{is}\in\mathcal{A}_s^d(H_{is})\}. $$ Thus \(C_{it}^d=1\) if and only if the clone’s actions at all decision times before \(t\) were compatible with strategy \(d\).

Proof. At \(t=1\), the recursion gives \(C_{i1}^d=C_{i0}^d I\{A_{i0}\in\mathcal{A}_0^d(H_{i0})\}\), and \(C_{i0}^d=1\), which is the stated product. Suppose the product expression holds at time \(t\). Then $$ C_{i,t+1}^d=C_{it}^d I\{A_{it}\in\mathcal{A}_t^d(H_{it})\} =\prod_{s=0}^{t} I\{A_{is}\in\mathcal{A}_s^d(H_{is})\}. $$ By induction, the expression holds at every decision time. A product of indicators equals one exactly when every factor equals one. \(\square\)

Why Artificial Censoring Can Bias a Per-Protocol Estimate

The clones remaining uncensored may differ from the target population. For example, a time-varying health measure may predict both whether a participant continues treatment and the outcome. Restricting analysis to adherent clones can then select a group with a different outcome risk. The strategy deviation itself is not a reason to discard the data without further thought: the selection it creates may need to be addressed using inverse-probability weighting.

For a deterministic strategy, define the conditional probability of remaining compatible at decision time \(t\), among clones still compatible just before that decision, by $$ q_{it}^d=P\{A_{it}\in\mathcal{A}_t^d(H_{it})\mid H_{it},C_{it}^d=1\}. $$ For a clone that remains compatible through \(K\) decisions, its artificial-censoring weight is $$ W_{iK}^d=\prod_{t=0}^{K-1}\frac{1}{q_{it}^d}. $$ A clone’s weight is updated only while it remains compatible. Histories \(H_{it}\) must be measured before the decision at \(t\); using information recorded after that decision to predict compatibility reverses the time order.

Theorem: In discrete time, suppose (1) treatment and time-varying covariates are measured in their correct temporal order; (2) consistency holds, so observed outcomes along a strategy-compatible history equal the corresponding counterfactual outcomes under that strategy; (3) conditional exchangeability holds, so given measured history \(H_{it}\), treatment choice at each decision is independent of the relevant future counterfactual outcomes under \(d\); and (4) positivity holds, so \(q_{it}^d>0\) for histories with positive probability under \(d\). Then weighting strategy-compatible histories by \(W_{iK}^d\) corrects the selection due to artificial censoring in the per-protocol contrast. The claim concerns artificial censoring; ordinary loss to follow-up requires its own observation-process assumptions and, if adjusted for, its own probability factors.

Derivation. Consider a history through the final outcome, and write \(I_{it}^d=I\{A_{it}\in\mathcal{A}_t^d(H_{it})\}\). Under the observed treatment process, the conditional probability contribution of a compatible action at time \(t\) is \(q_{it}^d\). Under the intervention that follows \(d\), that action is required. Consequently, the ratio of the strategy’s probability for a compatible history to the observed probability of that history contributes \(I_{it}^d/q_{it}^d\) at time \(t\). Multiplying over decisions gives $$ \prod_{t=0}^{K-1}\frac{I_{it}^d}{q_{it}^d} = C_{iK}^d W_{iK}^d. $$ The conditional exchangeability and consistency assumptions allow the observed conditional distributions along compatible histories to represent those under the strategy. Positivity makes each probability ratio defined. Thus, for the outcome \(Y\) at the end of follow-up, the weighted observed mean among compatible clones represents the mean under the strategy: $$ E\!\left[C_{iK}^d W_{iK}^dY\right]=E[Y^d], $$ with expectations taken over the target baseline population and with no additional loss to follow-up in this identity. Taking the corresponding weighted means for each strategy gives the per-protocol contrast. This derivation does not make the assumptions true: unmeasured predictors of treatment and outcome, incorrect timing, or a zero probability of following the strategy can invalidate the interpretation. \(\square\)

Worked Example: Exact Weights for One Decision

Suppose 100 eligible participants are divided into two measured-history groups, each containing 50 people. In group 1, 45 remain compatible with the strategy and 9 of those have the outcome. The estimated probability of compatibility is \(q=45/50=0.90=9/10\), so each compatible clone receives weight \(1/q=10/9\). In group 2, all 50 remain compatible and 15 have the outcome, so their weight is 1.

The weighted event total is $$ 9\left(\frac{10}{9}\right)+15(1)=10+15=25. $$ The weighted population total is $$ 45\left(\frac{10}{9}\right)+50(1)=50+50=100. $$ The weighted risk is therefore \(25/100=0.25\). Within group 1, the observed event proportion among compatible clones is \(9/45=0.20\); weighting restores its representation to 50 people, corresponding to \(10\) expected events. The calculation uses the exact weight \(10/9\), not a rounded decimal treated as exact. The causal interpretation still depends on the theorem’s assumptions.

Worked Example: Multiplying Probabilities Across Decisions

Suppose 100 clones begin compatible with a strategy. At the first decision, the estimated probability of remaining compatible is \(0.80=4/5\). At the second decision, among those still compatible, the probability is \(0.75=3/4\). If 60 clones remain through both decisions, their cumulative probability is \((4/5)(3/4)=3/5\), and their cumulative weight is \(5/3\).

Suppose 12 of those 60 have the endpoint. Their weighted event total is \(12(5/3)=20\), and the weighted population total is \(60(5/3)=100\). The weighted risk is \(20/100=0.20\). The two probabilities are multiplied because the clone must remain compatible at both decisions. Using only the second probability would omit the selection at the first decision.

Diagnostics, Alternatives, and Limitations

Before interpreting a weighted estimate, check that the artificial-censoring rule has been implemented as written. Tabulate the number of clones censored at each decision and the recorded reason. Compare histories just before deviation with histories among clones that remain compatible. Inspect estimated \(q_{it}^d\) values and the resulting weights; very small probabilities produce large weights, so a few clones can dominate the estimate. Also check that outcome measurement continues to be distinguished from strategy compatibility.

A restriction to observed adherers without weighting is simpler, but it generally estimates an outcome among a selected group rather than the effect of following the strategy in the target population. An intention-to-treat analog instead compares initial assignments or strategies without censoring later deviations for this purpose; it answers a different causal question. Inverse-probability weighting can target a per-protocol effect, but requires measured histories that suffice for conditional exchangeability and adequate positivity. Weight truncation may reduce instability, but it changes the estimator and can introduce bias; it does not create support for histories where strategy adherence is impossible.

A final common mistake is to censor a clone whenever treatment differs from the baseline assignment, even when the strategy permits a grace period or allows switching. That rule does not implement the specified strategy. Define the allowed actions at each decision first, apply the rule at the correct time, and keep administrative end and ordinary loss to follow-up distinct. If no participants with some history can follow a strategy, the data cannot identify that strategy’s effect for that history by weighting alone.

Check Your Understanding

Answer each question, then compare with the solutions.

  1. A strategy permits either of two doses at a visit. What determines whether a clone is artificially censored?
  2. A participant is adherent at the first decision and deviates at the second. At which point does artificial censoring begin?
  3. Among 40 compatible clones, 8 experience the endpoint. Their estimated compatibility probability is \(0.80\). What is their weighted event total and weighted population total?
  4. Why is a participant who cannot be contacted not automatically classified as having deviated from strategy?
  5. What does a very small estimated compatibility probability imply for the corresponding inverse-probability weight?

Solutions. (1) The clone remains compatible if its observed dose is in the strategy’s allowed set at that history. (2) It remains compatible through the first decision and is artificially censored at the second decision, when the incompatible action occurs; outcomes before that decision remain counted according to the protocol’s timing convention. (3) The weight is \(1/0.80=5/4\). The weighted event total is \(8(5/4)=10\), and the weighted population total is \(40(5/4)=50\). (4) Inability to contact the participant is loss to follow-up: the later action is unknown, not known to violate the rule. (5) Its reciprocal is large, so the weighted estimate may be unstable and dominated by a few clones; it can also signal weak practical positivity.

Clinical Biostats