Indicate data that we want to exclude from model fitting
Source:R/preprocessing.R
indicate_ww_exclusions.Rd
This function takes in a dataframe which contains an outlier
column name specified by the outlier_col_name
.
Usage
indicate_ww_exclusions(
data,
outlier_col_name = "flag_as_ww_outlier",
remove_outliers = TRUE
)
Arguments
- data
A dataframe containing a column indicating outliers, called
outlier_col_name
.- outlier_col_name
A character string indicating the name of the column containing the outlier indicator, must contain only 0 or 1
- remove_outliers
A boolean indicating whether or not to exclude the outliers from the fitting. If TRUE, copy outliers to exclusions, if FALSE, set exclusions to none