List of files: functions_lifeineq.R - functions used in other scripts to calculate lifespan inequality indicators and threshold ages. cv_dynamics_hmd.R - script used to reproduce figures 1 and 2 in the manuscript. RUS.mltper_1x1.txt - HMD data used in cv_dynamics_hmd.R. USA.mltper_1x1.txt - HMD data used in cv_dynamics_hmd.R. JPN.mltper_1x1.txt - HMD data used in cv_dynamics_hmd.R. cv_dynamics_edu_spain.R - script used to reproduce figures 3 and A-1 in the manuscript. spain_lifetables_byedu.csv - Spanish mortality data by education used in cv_dynamics_edu_spain.R.