Tutorials › Causal Inference › Continuous Treatment Blips And Dose-Response Models

Structural Nested Models and G-Estimation · Tutorial 761 of 972

Continuous Treatment Blips And Dose-Response Models

Parameterize a continuous-dose blip, derive its g-estimation moments, and interpret fitted dose contrasts and slopes under explicit identification assumptions.

Advanced 10 min read

What You'll Learn

  • Define a continuous-treatment blip relative to a reference dose.
  • State the exchangeability, consistency, positivity, and model conditions used for identification.
  • Derive g-estimation moments by blipping down the observed outcome.
  • Use residualized dose and dose-basis functions to estimate linear and quadratic blips.
  • Translate fitted blip parameters into finite dose contrasts and marginal causal responses.

Why Model a Continuous-Treatment Blip?

A treatment need not be simply present or absent. A medication may be prescribed at different daily doses, an intervention may vary in intensity, and exposure may accumulate on a continuous scale. In these settings, a causal question often concerns the effect of changing the dose, not merely comparing treatment with no treatment.

A structural nested mean model represents that causal contrast as a blip: the change in mean outcome attributable to a specified dose, relative to a reference dose, among units with the same pre-treatment history. G-estimation uses treatment variation conditional on that history to estimate the blip parameters, after subtracting the modeled causal contribution from the observed outcome.

Defining the Dose Blip

Let \(A\) be a continuous treatment dose, \(H\) the measured history available before treatment, and \(Y(a)\) the potential outcome that would be observed if dose \(a\) were assigned. For this tutorial, use dose zero as the reference. The conditional mean blip at dose \(a\) is the mean causal contrast between dose \(a\) and dose zero, within history \(H\).

Definition: A continuous-treatment blip function \(\gamma(a,H;\psi)\) models the conditional causal mean contrast \(E[Y(a)-Y(0)\mid H]\). Thus, \(\gamma(0,H;\psi)=0\), and the blip compares doses while holding the pre-treatment history fixed. The parameter vector \(\psi\) specifies the dose-response shape.

A simple model assumes a common linear response per unit of dose:

$$ \gamma(a,H;\psi)=\psi a. $$

Here \(\psi\) is the mean change in outcome for a one-unit increase in dose, under this linear model. A curved relationship can instead be represented, for example, by a quadratic blip:

$$ \gamma(a,H;\psi)=\psi_1a+\psi_2a^2. $$

The blip describes a causal contrast, not the absolute mean outcome at dose \(a\). The latter also includes the mean outcome under the reference dose, which may depend on \(H\). A reference dose of zero is useful only when it has a meaningful interpretation; if zero is not a relevant reference, a different reference dose can be used and the blip defined relative to it.

Identification and the Blip-Down Outcome

The causal interpretation of a fitted blip requires assumptions about how treatment was assigned and recorded. Write \(Y(a)\) for the potential outcome at dose \(a\), and let \(H\) contain the measured pre-treatment variables needed to control confounding.

Assumptions: Consistency means that if the received dose is \(A=a\), the observed outcome equals \(Y(a)\). Conditional exchangeability means \(Y(a)\) is independent of \(A\) given \(H\), for doses under consideration. Positivity requires that, within relevant histories, there is treatment variation and support for the doses being compared. In addition, the chosen blip function must correctly describe the conditional causal mean contrast for the target population and dose range.

These conditions clarify the role of the g-estimation equation. If the true parameter is \(\psi_0\), subtract the modeled blip at the received dose from the observed outcome:

$$ U(\psi_0)=Y-\gamma(A,H;\psi_0). $$

This is called the blip-down outcome. Under the assumptions above and a correctly specified blip, its conditional mean does not depend further on the received dose once \(H\) is fixed. In words, removing the modeled causal contribution of the received dose leaves an outcome whose mean is the mean outcome under the reference dose.

$$ E[U(\psi_0)\mid A,H]=E[Y(0)\mid H]. $$

The right side can vary with \(H\), so \(U(\psi_0)\) need not have the same mean for every person. The key restriction is that, within a history, its conditional mean is not associated with which dose was received. Treatment-residual moment equations express that restriction without requiring a model for the reference-dose mean.

Deriving the G-Estimation Equation

Let \(q(A)\) be a vector of dose functions used by the blip model. For a linear blip, \(q(A)=A\); for the quadratic model above, \(q(A)=(A,A^2)^\mathsf{T}\). Center each component by its conditional expectation given \(H\). Under the true blip, the centered dose functions have zero conditional mean, while the blip-down outcome has a conditional mean that is constant over doses within \(H\).

$$ E\left[\{q(A)-E[q(A)\mid H]\} \{Y-\gamma(A,H;\psi_0)\}\right]=0. $$

The argument is a conditional-expectation calculation. Let \(\mu_0(H)=E[Y(0)\mid H]\). First condition the product on \(A,H\); the centered dose term is then fixed, and the conditional mean of the blip-down outcome is \(\mu_0(H)\). Next condition on \(H\). The centered dose term has conditional mean zero, so the entire expectation is zero:

$$ \begin{aligned} &E[\{q(A)-E[q(A)\mid H]\}U(\psi_0)]\\ &=E\left[\{q(A)-E[q(A)\mid H]\} E[U(\psi_0)\mid A,H]\right]\\ &=E\left[\{q(A)-E[q(A)\mid H]\}\mu_0(H)\right]\\ &=E\left[\mu_0(H)E\{q(A)-E[q(A)\mid H]\mid H\}\right]=0. \end{aligned} $$

In data, replace expectations with sample averages and estimate the conditional dose means from the treatment model. For a scalar linear blip, the sample equation is a residualized-dose moment. For a blip with multiple dose-basis terms, use one such moment per parameter; the resulting system must contain enough independent treatment variation to identify those parameters.

$$ \sum_{i=1}^{n} \{q(A_i)-\widehat{E}[q(A_i)\mid H_i]\} \{Y_i-\gamma(A_i,H_i;\psi)\}=0. $$

The conditional expectations must correspond to the components of \(q\). In particular, for a quadratic blip the centered terms are \(A-\widehat{E}[A\mid H]\) and \(A^2-\widehat{E}[A^2\mid H]\); centering \(A\) alone does not supply the second moment equation.

Worked Example: Estimating a Linear Dose Blip

Consider a hypothetical sample of four people, with treatment measured in dose units and outcome measured in points. Assume there is no relevant \(H\) in this illustration, that the blip is linear, and that the identification assumptions hold. The observed doses are \(0,1,2,3\), and the outcomes are \(5,8,9,14\). With no history, the estimated conditional mean dose is the sample mean, \(\bar A=1.5\).

The linear blip is \(\gamma(A;\psi)=\psi A\). Its blip-down outcome is \(Y-\psi A\), and the empirical g-estimation equation is \(\sum_i(A_i-\bar A)(Y_i-\psi A_i)=0\). Solving for \(\psi\) gives:

$$ \begin{aligned} \widehat{\psi} &=\frac{\sum_i(A_i-\bar A)Y_i}{\sum_i(A_i-\bar A)A_i}\\ &=\frac{(-1.5)(5)+(-0.5)(8)+(0.5)(9)+(1.5)(14)} {(-1.5)(0)+(-0.5)(1)+(0.5)(2)+(1.5)(3)}\\ &=\frac{-7.5-4+4.5+21}{0-0.5+1+4.5} =\frac{14}{5}=2.8. \end{aligned} $$

The fitted blip is \(2.8a\) points. Under the linear model, a one-dose-unit increase corresponds to a 2.8-point increase in the conditional mean outcome; a change from dose 1 to dose 3 corresponds to \(2.8(3-1)=5.6\) points. These are model-based causal contrasts only if the assumptions and the linear blip are credible. Four observations do not establish those assumptions or support precise inference.

Curved Dose Responses and Dose Changes

With a quadratic blip, two parameters describe the curve relative to dose zero. The first-order coefficient alone is not the effect of a one-unit dose increase at every dose. A dose change from \(a\) to \(a+\delta\) has modeled conditional mean contrast \(\gamma(a+\delta,H;\psi)-\gamma(a,H;\psi)\). For the quadratic model this is \(\psi_1\delta+\psi_2\{(a+\delta)^2-a^2\}\). When the curve is differentiable, its local slope at dose \(a\) is \(\psi_1+2\psi_2a\), in outcome units per dose unit.

Worked Example: Recovering a Quadratic Blip

Suppose a hypothetical dataset has no relevant \(H\), and records doses \(A=0,1,2,3\) with outcomes \(Y=10,12.5,16,20.5\) points. Assume the quadratic blip \(\gamma(A;\psi)=\psi_1A+\psi_2A^2\) is correctly specified and the identification conditions hold. The sample means are \(\bar A=1.5\), \(\overline{A^2}=3.5\), and \(\bar Y=14.75\). The two empirical moments use centered dose terms \(A-\bar A\) and \(A^2-\overline{A^2}\).

The required cross-products are \(\sum(A_i-\bar A)^2=5\), \(\sum(A_i-\bar A)(A_i^2-\overline{A^2})=15\), \(\sum(A_i^2-\overline{A^2})^2=49\), \(\sum(A_i-\bar A)Y_i=17.5\), and \(\sum(A_i^2-\overline{A^2})Y_i=54.5\). Therefore the two moment equations are:

$$ \begin{aligned} 5\psi_1+15\psi_2&=17.5,\\ 15\psi_1+49\psi_2&=54.5. \end{aligned} $$

Subtracting three times the first equation from the second gives \(4\psi_2=2\), so \(\widehat{\psi}_2=0.5\). Substitution into the first equation gives \(5\psi_1+7.5=17.5\), hence \(\widehat{\psi}_1=2\). The fitted blip is \(2a+0.5a^2\) points. The contrast from dose 2 to dose 3 is \((2(3)+0.5(9))-(2(2)+0.5(4))=10.5-6=4.5\) points. The local slope at dose 2 is \(2+2(0.5)(2)=4\) points per dose unit. A finite one-unit change from 2 to 3 is 4.5 points, not 4, because the curve bends upward.

Why Residualizing Treatment Matters

When dose assignment depends on measured history, raw treatment-outcome association can reflect both causal dose response and differences in history. The treatment residual compares a person's received dose with the dose expected from their history. Using that residual in the moment equation removes the part predictable from \(H\), which is the source of confounding adjustment in this g-estimation construction.

Worked Example: A Confounded Linear Dose Association

Consider hypothetical data from two history groups. In group \(H=0\), doses are 0 and 2 and outcomes are 10 and 16 points. In group \(H=1\), doses are 4 and 6 and outcomes are 30 and 36 points. Assume the conditional mean dose is correctly represented by the group-specific means, that exchangeability holds given \(H\), and that the common linear blip and positivity conditions are appropriate over the within-group dose ranges.

The conditional mean doses are 1 for \(H=0\) and 5 for \(H=1\). Thus the residual doses are \(-1,1,-1,1\). For the linear blip, the g-estimate solves \(\sum_i(A_i-\widehat{E}[A\mid H_i])(Y_i-\psi A_i)=0\). The coefficient is the ratio of the residual-dose/outcome cross-product to the residual-dose/treatment cross-product:

$$ \begin{aligned} \widehat{\psi} &=\frac{(-1)(10)+(1)(16)+(-1)(30)+(1)(36)} {(-1)(0)+(1)(2)+(-1)(4)+(1)(6)}\\ &=\frac{12}{4}=3 \text{ points per dose unit}. \end{aligned} $$

The unadjusted slope is different. The overall means are \(\bar A=3\) and \(\bar Y=23\), so the ordinary centered slope is \(\sum(A_i-3)(Y_i-23)/\sum(A_i-3)^2=(39+7+7+39)/(9+1+1+9)=92/20=4.6\) points per dose unit. Here the high-history group receives higher doses and also has higher outcomes. The residualized moment uses within-history dose variation and estimates 3, the common causal slope under the stated assumptions, whereas the unadjusted slope mixes dose and history differences.

Interpretation and Common Pitfalls

A fitted blip must be translated into the dose contrast actually asked about. For a linear blip, \(\psi\) is the modeled change per dose unit, so a change of \(\delta\) units has contrast \(\psi\delta\). For a nonlinear blip, calculate the difference in fitted blips at the two doses; do not report a coefficient as if it were a universal per-unit effect. The contrast is conditional on the model and the stated history structure.

  • Confusing the blip with the absolute dose-specific mean. The blip is relative to the reference dose. It does not by itself give \(E[Y(a)\mid H]\).
  • Using only a linear dose residual for a multi-parameter curve. A quadratic blip requires moments for both \(A\) and \(A^2\), centered conditional on \(H\).
  • Reading a nonlinear coefficient as the dose effect everywhere. In a quadratic model, the local slope depends on dose; compute the relevant finite contrast or derivative.
  • Assuming residualization guarantees causal identification. A treatment residual does not repair unmeasured confounding, lack of dose support, inconsistent treatment definitions, or a misspecified blip.
  • Extrapolating beyond observed dose support. A fitted curve can produce numerical predictions outside the range with adequate treatment variation, but positivity does not justify their causal interpretation.
Key takeaway: Specify the dose blip as a conditional causal contrast, subtract the modeled blip from the observed outcome, and estimate its parameters by requiring the blip-down outcome to be unassociated with centered treatment functions within history. Interpret the fitted curve through contrasts between doses, while keeping identification assumptions and dose support in view.

Check Your Understanding

Use the definitions and moment equations above to answer the following.

  1. For a linear blip \(\gamma(a;\psi)=\psi a\), what causal contrast does \(\psi\) represent, and what contrast is implied by increasing dose by three units?
  2. Why does a quadratic blip require a centered \(A^2\) moment in addition to a centered \(A\) moment?
  3. In the derivation, why does the conditional expectation of the centered treatment function given \(H\) equal zero?
  4. For \(\gamma(a)=\psi_1a+\psi_2a^2\), write the finite contrast from dose \(a\) to dose \(a+\delta\).
  5. Give one reason why a correctly solved g-estimation equation may still fail to support a causal interpretation.
Clinical Biostats