Code associated with a study to estimate social contact rates for the COVID-19 pandemic using Google mobility and pre-pandemic contact surveys.