| FNAIVE | R Documentation |
FNAIVE() returns a random walk functional model applied to the formula's response variable as a function of age.
Standard deviations that cannot be estimated, such as at ages with fewer
than two finite residuals, are interpolated from neighbouring ages.
Simulations from generate() with bootstrap = TRUE resample whole years
of residuals, so they keep the correlation between ages. Otherwise, ages are
simulated independently from normal distributions, which understates the
uncertainty of quantities computed across ages, such as life expectancy.
FNAIVE(formula, ...)
formula |
Model specification. |
... |
Not used. An error is given if any arguments are supplied here, so that misspelled arguments are not silently ignored. |
A model specification.
Rob J Hyndman
fnaive <- norway_mortality |>
dplyr::filter(Sex == "Female") |>
model(fit = FNAIVE(Mortality))
report(fnaive)
autoplot(fnaive) + ggplot2::scale_y_log10()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.