R (version 3.6.3) programs to replicate the results in "Distributionally adjusted life expectancy as a life table function" * Data * ******** * Data were downloaded from the Human Mortality Database (HMD), https://www.mortality.org/, on May-28th 2019. The exact data for download can be found in https://www.mortality.org/cgi-bin/hmd/hmd_download.php, 'Period data': 'Life Tables - Male' - 'lt_male.zip' 'Life Tables - Female' - 'lt_female.zip' 'Life Table - Both Sexes' - 'lt_both.zip' From these files we use the 1x1 (by age and year) life tables only for all countries. * Scripts * *********** * DALE00.r: Adds inequality columns to the HMD life tables: distributionally adjusted life expectancy & inequality index. By defaults it generates the new columns for alpha = 0. Change the parameter 'a' for other results! It stores a csv file, 'dalelt.csv', with the additional information for subsequent processing. * DALE01.r: Table 1 in the paper. * DALE02.r: Graphs 5 and 6 of the paper. It also calculates the correlation coeffient between life expectancy and the geometric mean mentioned in the paper.