Bg1*_*850 2 r time-series forecasting trend
我很确定我错过了一些非常简单的东西,但仍然无法弄清楚为什么会出现这个错误.我所拥有的数据是2013年4月至2014年3月的每个月末数据.现在我想了解12个月期间的趋势.
xx <- structure(c(41.52, 41.52, 41.52, 41.68, 41.68, 41.68, 41.84,
41.84, 41.84, 42.05, 42.05, 42.05), .Tsp = c(2013.25, 2014.16666666667,
12), class = "ts");
Run Code Online (Sandbox Code Playgroud)
是我的时间序列数据.现在我用的时候
stl(xx,s.window ="periodic")
Run Code Online (Sandbox Code Playgroud)
我收到错误:
Error in stl(xx, s.window = "periodic") :
series is not periodic or has less than two periods
Run Code Online (Sandbox Code Playgroud)
我不知道出了什么问题,因为据我所知这个系列有12个时期.请协助