Estimating the time-varying reproduction number of SARS-CoV-2 using national and subnational case counts