This function calls Treat.coin()
for each coin in the purse. See the documentation of that function for
details. See also vignette("treat")
.
Usage
# S3 method for class 'purse'
Treat(
x,
dset,
global_specs = NULL,
indiv_specs = NULL,
combine_treat = FALSE,
write_to = NULL,
disable = FALSE,
...
)
Arguments
- x
A purse object
- dset
The data set to treat in each coin.
- global_specs
Default specifications. See details in
Treat.coin()
.- indiv_specs
Individual specifications. See details in
Treat.coin()
.- combine_treat
By default, if
f1
fails to passf_pass
, thenf2
is applied to the originalx
, rather than the treated output off1
. Ifcombine_treat = TRUE
,f2
will instead be applied to the output off1
, so the two treatments will be combined.- write_to
If specified, writes the aggregated data to
.$Data[[write_to]]
. Defaultwrite_to = "Treated"
.- disable
Logical: if
TRUE
will disable data treatment completely and write the unaltered data set. This option is mainly useful in sensitivity and uncertainty analysis (to test the effect of turning imputation on/off).- ...
arguments passed to or from other methods.