is_outlier | R Documentation |
By default the function returns a logical vector that indicates which
observations were identified or declared as (potential) outliers by the method;
if names = TRUE
is set in the function call, the row names of the
(potential) outliers are returned.
is_outlier(object, ...)
## S3 method for class 'wbaconmv'
is_outlier(object, names = FALSE, ...)
## S3 method for class 'wbaconlm'
is_outlier(object, names = FALSE, ...)
object |
object of class |
names |
|
... |
additional arguments passed to the method. |
A logical vector or vector with row names.
wBACON_reg
and wBACON
data(swiss)
m <- wBACON(swiss)
# indicator vector of potential outliers
is_outlier(m)
# names of the potential outliers
is_outlier(m, names = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.