Skip to contents

Lee-Carter model of mortality or fertility rates. LC() returns a Lee-Carter model applied to the formula's response variable as a function of age. This produces a standard Lee-Carter model by default, although many other options are available. Missing rates are set to the geometric mean rate for the relevant age.

Usage

LC(
  formula,
  adjust = c("dt", "dxt", "e0", "none"),
  jump_choice = c("fit", "actual"),
  scale = FALSE,
  ...
)

Arguments

formula

Model specification. It should include the log of the variable to be modelled. See the examples.

adjust

method to use for adjustment of coefficients \(k_t\). Possibilities are "dt" (Lee-Carter method), "dxt" (BMS method), "e0" (Lee-Miller method based on life expectancy) and "none". If omitted, "dt" is used when the data contain deaths and population (see vital_vars()), and "none" otherwise, or when the data contain product-ratios from make_pr(). The "dt" and "dxt" methods require deaths and population.

jump_choice

Method used for computation of jump-off point for forecasts. Possibilities: "actual" (use actual rates from final year) and "fit" (use fitted rates). The original Lee-Carter method used "fit" (the default), but Lee and Miller (2001) and most other authors prefer "actual". With "actual", fitted rates are used (with a warning) for ages whose rate is zero or missing in the final year.

scale

If TRUE, bx and kt are rescaled so that kt has drift parameter = -1 (i.e., kt decreases by 1 per year on average).

...

Not used. An error is given if any arguments are supplied here, so that misspelled arguments are not silently ignored.

Value

A model specification.

References

Basellini, U, Camarda, C G, and Booth, H (2022) Thirty years on: A review of the Lee-Carter method for forecasting mortality. International Journal of Forecasting, 39(3), 1033-1049.

Booth, H., Maindonald, J., and Smith, L. (2002) Applying Lee-Carter under conditions of variable mortality decline. Population Studies, 56, 325-336.

Lee, R D, and Carter, L R (1992) Modeling and forecasting US mortality. Journal of the American Statistical Association, 87, 659-671.

Lee R D, and Miller T (2001). Evaluating the performance of the Lee-Carter method for forecasting mortality. Demography, 38(4), 537–549.

See also

Author

Rob J Hyndman

Examples

lc <- norway_mortality |>
  dplyr::filter(Sex == "Female") |>
  model(lee_carter = LC(log(Mortality)))
report(lc)
#> Series: Mortality 
#> Model: LC 
#> Transformation: log(Mortality) 
#> 
#> Options:
#>   Adjust method: dt
#>   Jump choice: fit
#> 
#> Age functions
#> # A tibble: 111 × 3
#>     Age    ax     bx
#>   <int> <dbl>  <dbl>
#> 1     0 -4.33 0.0148
#> 2     1 -6.16 0.0213
#> 3     2 -6.88 0.0193
#> 4     3 -7.20 0.0186
#> 5     4 -7.35 0.0173
#> # ℹ 106 more rows
#> 
#> Time coefficients
#> # A tsibble: 124 x 2 [1Y]
#>    Year    kt
#>   <int> <dbl>
#> 1  1900  121.
#> 2  1901  114.
#> 3  1902  108.
#> 4  1903  114.
#> 5  1904  111.
#> # ℹ 119 more rows
#> 
#> Time series model: RW w/ drift 
#> 
#> Variance explained: 89.74%
autoplot(lc)