MEAN() returns an iid model applied to the formula's response variable.

MEAN(formula, ...)

Arguments

formula Model specification. Not used.

Value

A model specification.

Details

The model does not use any specials, and so everything on the formula's right-hand-side will be ignored.

Specials

window

The window special is used to specify a rolling window for the mean.

window(size = NULL)

 size The size (number of observations) for the rolling window. If NULL (default), a rolling window will not be used.

library(tsibbledata)
#> 1  <MEAN>