5
如何分析非周期时间序列中的趋势
假设我有以下非周期性的时间序列。显然,这种趋势正在减少,我想通过一些测试(使用p值)证明这一趋势。由于值之间存在强烈的时间(序列)自相关,因此我无法使用经典的线性回归。 library(forecast) my.ts <- ts(c(10,11,11.5,10,10.1,9,11,10,8,9,9, 6,5,5,4,3,3,2,1,2,4,4,2,1,1,0.5,1), start = 1, end = 27,frequency = 1) plot(my.ts, col = "black", type = "p", pch = 20, cex = 1.2, ylim = c(0,13)) # line of moving averages lines(ma(my.ts,3),col="red", lty = 2, lwd = 2) 我有什么选择?
12
r
time-series