cohort_components: Extract cohort components from a model

View source: R/components.R

cohort_componentsR Documentation

Extract cohort components from a model

Description

For a mable with a single model column, return the model components that are indexed by birth year of the cohort.

Usage

cohort_components(object, ...)

Arguments

object

A vital mable object with a single model column.

...

Not currently used.

Value

tsibble object containing the cohort components from the model.

Examples

norway_mortality |>
  dplyr::filter(Sex == "Male", Age > 50, Year > 1960) |>
  model(apc = APC(Mortality)) |>
  cohort_components()

vital documentation built on Aug. 21, 2025, 5:34 p.m.