Skip to contents

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()
#> # A tibble: 101 × 6
#>    Sex    State    Code    Age    ax     bx
#>    <chr>  <chr>    <chr> <int> <dbl>  <dbl>
#>  1 female Victoria VIC       0 -4.15 0.0157
#>  2 female Victoria VIC       1 -6.40 0.0218
#>  3 female Victoria VIC       2 -7.01 0.0195
#>  4 female Victoria VIC       3 -7.32 0.0180
#>  5 female Victoria VIC       4 -7.36 0.0159
#>  6 female Victoria VIC       5 -7.63 0.0172
#>  7 female Victoria VIC       6 -7.48 0.0123
#>  8 female Victoria VIC       7 -7.73 0.0149
#>  9 female Victoria VIC       8 -8.08 0.0178
#> 10 female Victoria VIC       9 -7.81 0.0114
#> # ℹ 91 more rows