age_components: Extract age components from a model

View source: R/components.R

age_componentsR Documentation

Extract age components from a model

Description

For a mable with a single model column, return the model components that are indexed by age.

Usage

age_components(object, ...)

Arguments

object

A vital mable object with a single model column.

...

Not currently used.

Value

vital object containing the age components from the model.

Examples

aus_mortality |>
  dplyr::filter(State == "Victoria", Sex == "female") |>
  model(lee_carter = LC(log(Mortality))) |>
  age_components()


vital documentation built on June 22, 2024, 9:56 a.m.