R 中的时间序列分析
David S. Matteson
Associate Professor at Cornell University
有些时间序列不呈现明显趋势:
线性趋势示例:
快速增长趋势示例:
周期/正弦趋势示例:
方差增大趋势示例:
log() 可将快速增长线性化:
log()
diff() 可去除线性趋势:
diff()
diff(…, s)(季节差分)可去除周期性趋势。
diff(…, s)
diff(x, s = 4)