【发布时间】:2021-12-19 12:23:49
【问题描述】:
在正常模型中拟合数据集,如下所示:
> head(total)
# A tsibble: 6 x 15 [1D]
# Key: id [6]
Date Close Interest_Rate Consumer_Inflation `CPI(YOY)` `Wage_Index(QoQ)` `Wage_Index(YoY)` AiG_idx TD_Inflation CFTC_AUD_net_positions `RBA_Mean_CPI(Yo~ Commonwealth_Ba~
<date> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
1 2009-04-01 69.4 0 0 0 0 0 0 0 0 0 0
2 2009-04-02 71.6 0 0 0 0 0 0 0 0 0 0
3 2009-04-03 71.0 0 0 0 0 0 0 0 0 0 0
4 2009-04-06 71.0 0 0 0 0 0 0 0 0 0 0
5 2009-04-07 71.6 3 0 0 0 0 0 0 0 0 0
6 2009-04-08 71.1 3 0 0 0 0 0 0 0 0 0
训练模型:
fit <- total_axy %>%
model(
fable::TSLM(Close)
)
report(axy_fit)
正在训练
1-10 of 3,409 rows | 1-10 of 16 columns
每行 1 个模型!我该如何解决这个问题? 我只想要所有行的 1 个模型!!!
【问题讨论】:
-
model()来自什么包? -
fpp3 ,出自《预测原理与实践3》一书
标签: r forecasting fable