calculate_effects {twangMediation}R Documentation

Calculate the actual effects

Description

Calculate the actual effects

Usage

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.

Value

res

The actual effects

See Also

wgtmed


[Package twangMediation version 1.2 Index]