detect_outliers {prcr} | R Documentation |
Identifies potential outliers
detect_outliers(df, return_index = TRUE)
df |
data.frame (or tibble) with variables to be clustered; all variables must be complete cases |
return_index |
Boolean (TRUE or FALSE) for whether to return only the row indices of the possible multivariate outliers; if FALSE, then all of the output from the function (including the indices) is returned |
* add an argument to ‘create_profiles_cluster()' to remove multivariate outliers based on Hadi’s (1994) procedure
either the row indices of possible multivariate outliers or all of the output from the function, depending on the value of return_index