FMEAN {vital} | R Documentation |
Functional mean model
Description
FMEAN()
returns an iid functional model applied to the formula's response variable as a function of age.
Usage
FMEAN(formula, ...)
Arguments
formula |
Model specification. |
... |
Not used. |
Value
A model specification.
Author(s)
Rob J Hyndman
Examples
fmean <- aus_mortality |>
dplyr::filter(State == "Victoria", Sex == "female") |>
model(mean = FMEAN(Mortality))
report(fmean)
autoplot(fmean) + ggplot2::scale_y_log10()
[Package vital version 1.1.0 Index]