简体   繁体   English

R 时间序列或数据异常值

[英]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).有具有多个异常值的数据,我想更正它以进行预测,因为我知道我的值通常在 1 到 4 之间。因为我必须在不触及正常值(1 到 4 之间)的情况下获取这些值。 Thank you谢谢

Trafic交通 date日期
107 107 01/02/2020 01/02/2020
60 60 01/03/2020 01/03/2020
3.4 3.4 01/04/2020 01/04/2020
3.2 3.2 01/05/2020 01/05/2020
2.9 2.9 01/06/2020 01/06/2020

You can try scaling the variable using scale() function.您可以尝试使用 scale() function 缩放变量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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