Select Git revision
stats_outlier.Rd 966 B
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stats.R
\name{stats_outlier}
\alias{stats_outlier}
\title{Outlier detection}
\usage{
stats_outlier(dt, check_col = "ppm", msg = FALSE, ...)
}
\arguments{
\item{dt}{data.table or data.frame}
\item{check_col}{Name of column (quoted string) for which outlier detection should be performed}
\item{msg}{return messages}
\item{...}{zero or more objects that can be coerced to character (and which are pasted together with no separator) or a single condition object.}
}
\value{
Plot
}
\description{
This function will return a score for potential outlier values (out_score).
It is based on four consecutive outlier tests, each of which will increase "out_score" by 1 if an outlier was detected.
The four tests are based on interquartile range (IQR), 2.5 / 97.5 quantile cut-off, Hampel test, Rosner test
If all four tests are True for a value, "out_score" has a value of "4"
}
\keyword{misc}