The supplemental .zip archive for this publication contains the following two R codes. 1. Decomposition_EYEM.R R function to decompose the measure Expected Years Ever-Married (EYEM). 2. EYEM_sample_Sweden.R This allows to replicate Swedish female period EYEM as a sample.