Learn R Programming

inferference (version 0.4.61)

total_effect: Retrieve Total Effect estimates

Description

Retrieves the population average total causal effect for specified allocations: $\hat{Y}(0, alpha1) - \hat{Y}(1, alpha2)$

Usage

total_effect(object, allocation1, allocation2 = NULL, trt.lvl1 = 0)

te(object, allocation1, allocation2 = NULL, trt.lvl1 = 0)

Arguments

object
an object of class interference
allocation1
the allocation scheme for which to estimate total effects
allocation2
the allocation scheme for which to estimate total effects If NULL, then returns all indirect effects compared to allocation1.
trt.lvl1
Defaults to 0.

Value

  • a data.frame with requested values