https://medium.com/data-and-beyond/outlier-detection-in-r-hampel-filter-for-time-series-15ca7d166067
Outlier Detection in R: Hampel Filter for time series
Dima Diachkov
Feb 2, 2024
“The Hampel Filter identifies outliers based on the median absolute deviation (MAD), a measure less affected by outliers in the data than the standard deviation.”