具有多列的索引/子集时间序列对象

时间:2018-11-25 19:17:37

标签: r time-series

stl的输出是“ stl”类的对象,该对象包括“具有季节性,趋势和余量的列的多个时间序列”。我只想获取时间序列的其余部分,以便可以绘制acf并查看它是否类似于白噪声。在RStudio中,在“数据”窗口中,此时间序列的描述为:

time.series:
..-attr(*,"dimnames")=List of 2
.. ..$ : NULL
.. ..$ : chr[1:3] "seasonal" "trend" "remainder"

如何才能获得时间序列的其余部分?如您所知,我在R领域还很陌生。

1 个答案:

答案 0 :(得分:1)

尝试

out <- stl(nottem, "per")
head(out$time.series[, "remainder"])
#[1] 0.2665254 1.1097288 1.8429318 0.1348488 1.3517676 0.3064259

示例取自?stl

情节

acf(out$time.series[, "remainder"])

enter image description here

相关问题