This function calls Treat.coin()
for each coin in the purse. See the documentation of that function for
details. See also vignette("treat")
.
# S3 method for purse
Treat(
x,
dset,
global_specs = NULL,
indiv_specs = NULL,
combine_treat = FALSE,
write_to = NULL,
disable = FALSE,
...
)
An updated purse with new treated data sets added at .$Data$Treated
in each coin, plus
analysis information at .$Analysis$Treated
A purse object
The data set to treat in each coin.
Default specifications. See details in Treat.coin()
.
Individual specifications. See details in Treat.coin()
.
By default, if f1
fails to pass f_pass
, then f2
is applied to the original x
,
rather than the treated output of f1
. If combine_treat = TRUE
, f2
will instead be applied to the output
of f1
, so the two treatments will be combined.
If specified, writes the aggregated data to .$Data[[write_to]]
. Default write_to = "Treated"
.
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.