Description Usage Arguments Details Value Author(s)
View source: R/flag_outliers.R
Flags observations that are considered outliers
1 2 | flag_outliers(data, sd_for_outlier = 2, flag_by = "facility",
result = "outliers")
|
data |
The ANC-RT dataset. The functions check_data, data_clean and mt_adjust should have been run on the data to properly prepare the data for use here. The dataset must have the following variables:
|
sd_for_outlier |
Standard deviation used to flag outliers (default is 2). |
flag_by |
Options include:
|
result |
Options include:
|
This function has been developed to flag outlier observations for the following variables: n_clients
, n_status_c
, testpos_c
, testneg_c
, knownpos_c
,
totpos_c
, prv
and cov
. Outliers are defined as 2 standard deviations greater than or less than the mean value.
A dataset including either the flagged observations only or the full, original dataset with additional variables indicating flagged observations, according to user inputs.
Mathieu Maheu-Giroux
Brittany Blouin
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.