Description Usage Arguments Details References See Also
Validates timeseries data by detecting outliers. The output is an xts-object with logical values. Outliers are set to FALSE, non-outliers to TRUE.
1 2 |
xts |
An |
sigma_multiplier |
The factor the standard deviation of all values is mulitplied with. |
moving_window |
logical. Controls the way the anomaly criteria is calculated. If set to TRUE, both mean and standard deviation are computed on moving windows (i.e. "rolling mean" and "rolling sd"). In contrast, if set to FALSE, the overall mean and the overall standard deviation of the given time series is used. This consequently leads to a static anomaly criteria. |
width |
An integer specifying the window width. |
type |
Either "mean" or "median". Determines the computation of the reference values. |
verbose |
logical. Provide additional details? |
The distinction whether a data point is an outlier or not is performed by defining an anomaly criteria. This reflects the standard deviation (sd) of data points multiplied by a factor (sigma_multiplier, default=3). The sd is calculated either for all data points or for moving windows. If the absolute difference of a data point and the (rolling) mean of data points is higher than the anomaly criteria, the value is considered to be an outlier.
DWA (2011). Merkblatt DWA-M 181 - Messung von Wasserstand und Durchfluss in Entwaesserungssystemen. Hennef.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.