cohort_components | R Documentation |
For a mable with a single model column, return the model components that are indexed by birth year of the cohort.
cohort_components(object, ...)
object |
A vital mable object with a single model column. |
... |
Not currently used. |
tsibble object containing the cohort components from the model.
norway_mortality |>
dplyr::filter(Sex == "Male", Age > 50, Year > 1960) |>
model(apc = APC(Mortality)) |>
cohort_components()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.