Effect of socioeconomic factors during the early COVID-19 pandemic: a spatial analysis