Modified treatment policies

Modified

June 17, 2024

As we already discussed, a modified treatment policy is an intervention characterized by a dependence on the natural, or observed, value of treatment. Examples include:

Synthetic Neighborhood Community Violence Data

In some current work, we are interested in estimating the effect of decreasing the level of community violence (violent crime rate) on risk of preterm birth. Research suggests community violence may impact infant health through physiological responses to stress, worsening maternal mental health, and unhealthy coping behaviors. Community violence is a highly endogenous exposure, which, motivates the use of such a shift intervention.1

Characteristic N = 1,0001
owner_vacancy_rate 4.3 (1.9, 8.3)
renter_vacancy_rate 3.9 (1.8, 9.0)
poverty_line_prop 16 (9, 24)
unemployed_prop 12 (8, 20)
no_car_prop 14 (9, 24)
never_married_prop 38 (29, 57)
separated_prop 3.23 (2.07, 4.62)
maternal_age 28 (22, 37)
edu_level
    1 292 (29%)
    2 452 (45%)
    3 256 (26%)
insurance_status
    1 489 (49%)
    2 493 (49%)
    3 18 (1.8%)
race_ethnicity
    1 216 (22%)
    2 53 (5.3%)
    3 3 (0.3%)
    4 139 (14%)
    5 4 (0.4%)
    6 19 (1.9%)
    7 525 (53%)
    8 41 (4.1%)
parity
    1 406 (41%)
    2 300 (30%)
    3 294 (29%)
neighborhood_violence 47 (34, 69)
preterm_birth 79 (7.9%)
1 Median (IQR); n (%)

Problem 1

Write a shift function (named d_mtp) for a modified treatment policy where the natural value of neighborhood violence is decreased by 50%. Using the lmtp package, estimate the population mean effect of this intervention on preterm birth. Make sure to use the id argument to account for community level clustering in the estimation of standard errors. To save computation time, don’t use cross-fitting.

Practice

Solution

d_mtp <- function(data, a) {
  data[[a]]*0.5
}

fit_mtp <- lmtp_tmle(
  data = crime, 
  trt = A, 
  outcome = Y, 
  baseline = W,
  id = id,
  shift = d_mtp, 
  mtp = TRUE,
  folds = 1, 
  learners_trt = learners, 
  learners_outcome = learners
)

Did you get this error?

Warning: Detected decimalish `trt` values and `mtp = FALSE`. Consider setting `mtp =
TRUE` if getting errors.
Loading required package: nnls
Error: object 'fit' not found

Make sure to set mtp = TRUE if you’re intervention is a modified treatment policy!

Problem 2

Let’s compare the effect of the intervention on reducing neighborhood violence on preterm birth to the observed preterm birth rate. Use the lmtp_contrast() function.

Practice

Solution

lmtp_contrast(fit_mtp, ref = mean(crime$preterm_birth))

With lmtp we found that under a hypothetical intervention that reduces neighborhood violence by 50%, preterm birth would decrease by approximately 4.4 percentange points.

References

Dı́az, Iván, Nicholas Williams, Katherine L Hoffman, and Edward J Schenck. 2023. “Nonparametric Causal Effects Based on Longitudinal Modified Treatment Policies.” Journal of the American Statistical Association 118 (542): 846–57.
Haneuse, Sebastian, and Andrea Rotnitzky. 2013. “Estimation of the Effect of Interventions That Modify the Received Treatment.” Statistics in Medicine 32 (30): 5260–77.

Footnotes

  1. Thank you to Chris Dharma, who simulated this data!↩︎