使用R中的预测包在时间序列上生成tbats函数我已获得以下参数:
tbats(cluster1tbattrain)
TBATS(0, {1,0}, 1, {<52.1785714285714,4>})
Call: tbats(y = cluster1tbattrain)
Parameters
Lambda: 0.000277
Alpha: 0.0004483821
Beta: 8.149e-07
Damping Parameter: 1
Gamma-1 Values: 6.500801e-08
Gamma-2 Values: 1.250234e-07
AR coefficients: 0.165745
Seed States:
[,1]
[1,] 1.377704557
[2,] -0.001508431
[3,] -0.119006816
[4,] 0.021604901
[5,] 0.040554704
[6,] -0.013422482
[7,] -0.031521559
[8,] 0.015044923
[9,] -0.041001689
[10,] 0.032026398
[11,] 0.000000000
Sigma: 0.1353452
AIC: 607.0256
如何将它们转换为数学函数,以Yt = f(α,β,Yt-1,θ)的形式,直接在excel上使用它们(例如)?
谢谢!
答案 0 :(得分:0)
你可以看看这个
require(forecast)
data(USAccDeaths)
fit <- tbats(USAccDeaths)
fit
write.csv(fit$seed.states, file = "examplefilename.csv")
然后检查Excel中的打开examplefilename.csv
是否为您提供了所期望的内容