I have electricity price data in a matrix form of order 24*2192, where 24 are hours and 2192 are the number of days. In my data, there are outliers that greatly affect accurate forecasting, such that forecasting accuracy error is large. So, how to detect outliers and treat them in an effective way. One way to deal with such a problem study in literature is the moving window filter approach. Can someone guide how to apply this method to my data in R? please help that how I implement this method in R.
Regard