简体   繁体   中英

R time series or data outliers

have data that has several aberrant values and I want to correct this to make forecasts knowing that my values are normally between and 4. as I have to take these values without touching the normal values (between 1 and 4). Thank you

Trafic date
107 01/02/2020
60 01/03/2020
3.4 01/04/2020
3.2 01/05/2020
2.9 01/06/2020

You can try scaling the variable using scale() function.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM