Description Usage Arguments Value
deanomalize()
wraps the workflow from the anomalize package into a single
function. This includes decomposition into seasonal, trend, and remainder
components using robust STL; identification of anomalies in the remainders
using an iterative Generalize Extreme Studentized Deviate Test; and
replacment of the identified anomalies with the seasonal + trend expected
value.
1 2 3 4 5 6 7 8 9 10 |
.data |
A data frame containg a time-based column and a column of observations. The time-based column will be identified automatically. Can include other columns, but these will be dropped. |
.col |
The column containing the observations at each time point |
period |
The length of time to use in seasonal decomposition; can be a
time-based definition (e.g. "1 week") or an integer number of days. If
|
trend |
The length of time to use in trend decomposition; can be a
time-based definition (e.g. "1 month") or an integer number of days. If
|
cutoff |
The cutoff value for anomaly detection; controls both the maximum percentage of data points that may be considered anomalies, as well as the critical value for the Generalized Extreme Studentized Deviate test used to detect the anomalies. Can be interpreted as the desired maximum probability that an individual data point is labeled an anomaly. |
quiet |
Should messages and warnings be suppressed? |
plot |
Should anomalies be plotted for visual inspection? |
... |
Additional arguments to pass to
|
A tibble
with a column for the time index and columns observed
,
season
, trend
, remainder
, remainder_l1
, remainder_l2
, anomaly
,
and observed_cleaned
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.