swapTxCtrl function

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

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)

Arguments

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

Returns

A desc object with swapped treatment and control

See Also

ps, dx.wts.mediation

  • Maintainer: Dan McCaffrey
  • License: GPL-3
  • Last published: 2022-08-16

Useful links