Obtain an estimate of the efficient influence function for the treatment-specific weighted mean parameter

estimate_eif_wmean(
  trt_spec_cond_mean_est,
  trt_spec_prob_est,
  trt_level,
  out,
  treat
)

Arguments

trt_spec_cond_mean_est

Conditional mean for trt_level

trt_spec_prob_est

Propensity for trt_level

trt_level

Treatment level

out

A numeric vector containing the outcomes. Missing outcomes are allowed.

treat

A numeric vector containing treatment status. Missing values are not allowed unless the corresponding entry in out is also missing. Only values of 0 or 1 are treated as actual treatment levels. Any other value is assumed to encode a value for which the outcome is missing and the corresponding outcome value is ignored.