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