Quantifying the impact of COVID-19 control measures using a Bayesian model of