outlierWF
outlierWF.Rd
This function will flag outlier wells based the median_wormlength_um for wells.
Arguments
- data
A data frame output from the
summarizeWells
function or any of theWF
functions.- ...
<[`dynamic-dots`][rlang::dyn-dots]> Variable(s) used to group the well summarized data. Variable names in data are supplied separated by commas and without quotes. The outliers will be detected across the wells within the group specified.
- iqr
Logical, if
TRUE
, wells in a group are called outliers if the well median_wormlength_um is outside the rangemedian(median_wormlength_um) +/- (thresh * IQR)
. IfFALSE
, wells in a group are called outliers if the well median_wormlength_um is outside the rangemean(median_wormlength_um) +/- (thresh * SD)
. The default isTRUE
. NOTE: The Interquartile Range (IQR) method is useful for most distributions. The Standard Deviation (SD) method should only be applied to normal distributions.- thresh
A numeric value used to calculate outliers. By default this parameter is set to
NULL
. Ifthresh = NULL
then it is set to the recommended values within the function: (1.5
ifiqr = TRUE
) and (3
ifiqr = FALSE
).- filterWF
Logical, if
TRUE
any flagged wells detected in data are not considered for the calculation of outliers.