######################################### # 第12章 季節調整法(TSSSパッケージ) ######################################### # # テストデータ # data(Blsallfood) # BLSallfood data 食品産業従業者数 data(Whard) # Wholesale hardware data #  標準的季節調整(トレンド次数2、季節モデル次数1、ARなし) season(Blsallfood, 2, 1) # 循環変動付きモデル(トレンド次数2、季節モデル次数1、AR次数2) season(Blsallfood, 2, 1, 2) # N=1,...,132でモデル推定、N=133以降は長期予測 season(Blsallfood, 2, 1, filter=c(1,132)) season(Blsallfood, 2, 1, 2, filter=c(1,132)) # data(Whard) # Wholesale hardware data # #  標準的季節調整 データは対数変換 season(Whard, 2, 1, log=TRUE) #  標準的季節調整モデルでN=133以降を長期予測 season(Whard, 2, 1, filter=c(1,132), log=TRUE) # 曜日調整(6パラメータ) season(Whard, 2, 1, 0, 6, year=1967, log=TRUE) #  曜日調整付き季節調整モデルでN=133以降を長期予測 season(Whard, 2, 1, 0, 6, year=1967, filter=c(1,132), log=TRUE)