calculate_effects function

Calculate the actual effects

Calculate the actual effects

calculate_effects(w_11, w_00, w_10, w_01, y_outcome, sampw = NULL)

Arguments

  • w_11: The Y(1, M(1)) weights
  • w_00: The Y(0, M(0)) weights
  • w_10: The Y(1, M(0)) weights
  • w_01: The Y(0, M(1)) weights
  • y_outcome: The Y variable
  • sampw: Sampling weights, set to NULL by default.

Returns

  • res: The actual effects

See Also

wgtmed

  • Maintainer: Dan McCaffrey
  • License: GPL-3
  • Last published: 2022-08-16

Useful links