开始使用免费开始使用

Bottom-up forecast for whole state

Now that you have forecasts for each region you can use the bottom-up hierarchy to calculate a forecast for the whole state! Your regional forecasts are saved as for_SEC_t_xts, for_MET_t_xts, and for_M_t_xts.

本练习是课程的一部分

Forecasting Product Demand in R

查看课程

练习说明

  • Sum up all of your regional forecasts into a variable called for_state to forecast the whole state!

交互式实操练习

通过完成这段示例代码来试试这个练习。

# Calculate the state sales forecast: for_state
for_state <- ___ + ___ + ___

# See the forecasts
for_state
编辑并运行代码