PAPER: "The ratio of expansion to compression: A new measure of lifespan disparity." AUTHORS: Zhen Zhang and Qiang Li. E-mail: zhang_zhen@fudan.edu.cn or qli@soci.ecnu.edu.cn 17 Oct, 2020
The data on mortality are available from the Human Mortality Database. The version of R used in this study is 4.0.2.
R code can be found in the three files:
- calc.rec.r contains the codes for calculating Tables 1 and 2 and plotting Figure 1, 2, 4, an 5.
- edag.r provides several functions for calculating e.dagger, a.dagger etc.
- simulations.r contains the codes for the simulations based on various scenarios and for plotting Figure 3.