Treat.purse {COINr}R Documentation

Treat a purse of coins for outliers

Description

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,
  ...
)

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 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.

write_to

If specified, writes the aggregated data to .$Data[[write_to]]. Default write_to = "Treated".

...

arguments passed to or from other methods.

Value

An updated purse with new treated data sets added at .$Data$Treated in each coin, plus analysis information at .$Analysis$Treated

Examples

# See `vignette("treat")`.

[Package COINr version 1.1.7 Index]