Learn R Programming

twangMediation (version 1.2)

swapTxCtrl: Auxiliary function to swap treatment and control in one element of a desc object from a ps object or dx.wts object

Description

Call this in the wgtmed() function and the bal.table.mediation() function.

Usage

swapTxCtrl(dd)

Value

A desc object with swapped treatment and control

Arguments

dd

numeric An element of a desc object from a ps or dx.wts object

See Also

ps, dx.wts.mediation