Interpreting Seasonal-Hybrid ESD output
The Seasonal-Hybrid ESD algorithm provides some useful output for understanding where the anomalies occur within the data.
In particular, the AnomalyDetectionVec()
function generates output as a list with the two elements
$anoms
, a data frame containing the columnsindex
andanoms
$plot
a plot of the time series with anomalies highlighted (ifplot = T
)
This exercise is part of the course
Introduction to Anomaly Detection in R
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Use Seasonal-Hybrid ESD for nitrate concentrations
river_anomalies <- AnomalyDetectionVec(___)