swapTxCtrl {twangMediation} | R Documentation |
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)
Arguments
dd |
numeric An element of a desc object from a ps or dx.wts object |
Value
A desc object with swapped treatment and control
See Also
[Package twangMediation version 1.2 Index]