R bfast:stl(Yt,“ periodic”)中的错误:系列不是周期性的或少于两个周期

时间:2018-12-20 13:54:42

标签: r time-series

我正在尝试运行bfast :: bfast()来对2003年的365个观测数据集进行时间序列分析。不幸的是,我总是收到相同的错误消息。感谢您的帮助!

mydata_2003 <- mydata[1:365, ]
# to extract the data for the year 2003 from a dataframe
# (each row one observation)

mydata_2003_ts <- ts(data = mydata_2003$area, start = c(2003, 1),
                     end = c(2003, 12), frequency = 365)
# convert the data for the year 2003 into a ts-object

mydata_2003_bfast <- bfast(Yt = mydata_2003_ts, season = "dummy",
                           max.iter = 1)

Error in stl(Yt, "periodic") :
      series is not periodic or has less than two periods

0 个答案:

没有答案