Multiply treatment by a fixed factor

Description

Creates a modified treatment policy that multiplies each individual’s observed treatment by factor. Useful for proportional reductions or increases in continuous treatments.

Usage

scale_by(factor)

Arguments

factor Numeric. The multiplicative factor.

Value

A causatr_intervention object.

See Also

static(), shift(), threshold(), dynamic(), ipsi()

Examples

library("causatr")

fit <- causat(nhefs, outcome = "wt82_71", treatment = "smokeintensity",
              confounders = ~ sex + age + wt71)
contrast(fit, interventions = list(
  halved = scale_by(0.5),
  observed = scale_by(1)
))