Auxiliary function to swap treatment and control in one element of a desc object from a ps object or dx.wts object
Call this in the wgtmed()
function and the bal.table.mediation()
function.
swapTxCtrl(dd)
dd
: numeric An element of a desc object from a ps or dx.wts objectA desc object with swapped treatment and control
ps
, dx.wts.mediation
Useful links