View source: R/detect_outliers.R
detect_outliers | R Documentation |
Detection of observations outliers based on residuals values according to two different methods: Grubb's test or a non-parametric method.
detect_outliers(
run,
compartment = NULL,
residuals = NULL,
method = "grubbs",
grubbs_pvalue_threshold = 0.05,
boxplot_coefficient = 3,
keep_time_zero = FALSE
)
run |
|
compartment |
integer. Number of the compartment of the observations of interest. |
residuals |
character. Column name of the residuals in the output tables. |
method |
character. One of |
grubbs_pvalue_threshold |
numeric. p-value threshold for Grubb's test. |
boxplot_coefficient |
numeric. k coefficient for non-parametric test. |
keep_time_zero |
logical. If |
A list with the following structure:
method
: character string of outlier detection method.
residuals
: character string of the type of residuals.
source
: tibble of the data source.
outliers
: tibble of the outliers with 5 columns: ID
, TIME
, CMT
, DV
and
"residuals"
.
EXAMPLERUN %>%
detect_outliers(compartment = 2, residuals = "CWRES", method = "grubbs")
EXAMPLERUN %>%
detect_outliers(compartment = 2, residuals = "CWRES",
method = "grubbs", grubbs_pvalue_threshold = 0.10)
EXAMPLERUN %>%
detect_outliers(compartment = 2, residuals = "CWRES", method = "boxplot")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.