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

MEAN(formula, ...)

Arguments

formula

Model specification.

...

Not used.

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!

Examples

library(tsibbledata) aus_elec %>% model(rw = MEAN(Demand))
#> # A mable: 5 x 2 #> # Key: State [5] #> State rw #> <chr> <model> #> 1 New South Wales <MEAN> #> 2 Queensland <MEAN> #> 3 South Australia <MEAN> #> 4 Tasmania <MEAN> #> 5 Victoria <MEAN>