powered by
MEAN() returns an iid model applied to the formula's response variable.
MEAN()
MEAN(formula, ...)
A model specification.
Model specification.
Not used.
The window special is used to specify a rolling window for the mean.
window
window(size = NULL)
size
Forecasting: Principles and Practices, Some simple forecasting methods (section 3.2)
library(tsibbledata) vic_elec %>% model(avg = MEAN(Demand))
Run the code above in your browser using DataLab