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

This model does not support usage of any specials. It only computes the mean!

See also

Examples

library(tsibbledata) vic_elec %>% model(avg = MEAN(Demand))
#> # A mable: 1 x 1 #> avg #> <model> #> 1 <MEAN>