https://github.com/ehm-lab/2019_sera_StatMed_Rcode