direct_effect function

Retreive Direct Effect estimates

Retreive Direct Effect estimates

Retrieves the population average direct causal effect for a specified allocation: Yhat(0,alpha)Yhat(1,alpha)Yhat(0, alpha) - Yhat(1, alpha).

direct_effect(object, allocation = NULL, trt.lvl1 = 0)

Arguments

  • object: an object of class interference
  • allocation: the allocation scheme for which to estimate direct effects. If NULL, then returns all direct effects.
  • trt.lvl1: Defaults to 0.

Returns

a data.frame with requested values

  • Maintainer: Bradley Saul
  • License: GPL (>= 2)
  • Last published: 2021-04-21

Useful links