Skip to contents

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

Rob J Hyndman

Examples

fnaive <- aus_mortality |>
  dplyr::filter(State == "Victoria", Sex == "female") |>
  model(fit = FNAIVE(Mortality))
report(fnaive)
#> Series: Mortality 
#> Model: FNAIVE 
#> 
#> # A tibble: 101 × 2
#>      Age    sigma
#>    <int>    <dbl>
#>  1     0 0.00609 
#>  2     1 0.00180 
#>  3     2 0.000610
#>  4     3 0.000401
#>  5     4 0.000443
#>  6     5 0.000406
#>  7     6 0.000386
#>  8     7 0.000329
#>  9     8 0.000306
#> 10     9 0.000285
#> # ℹ 91 more rows
autoplot(fnaive) + ggplot2::scale_y_log10()