Skip to content

alsnhll/COVID19EvictionSimulations

Repository files navigation

COVID19EvictionSimulations

Repository for model to simulate the impact of evictions on the spread of SARS-CoV-2

Joint work with:

Contact : Alison Hill alhill@jhmi.edu and Mike Levy mzlevy@upenn.edu

Pre-print: The effect of eviction moratoria on the transmission of SARS-CoV-2 (In press at Nature Communications)

Project Summary

Massive unemployment during the COVID-19 pandemic could result in an eviction crisis in US cities. Here we model the effect of evictions on SARS-CoV-2 epidemics, simulating viral transmission within and among households in a theoretical metropolitan area. We recreate a range of urban epidemic trajectories and project the course of the epidemic under two counterfactual scenarios, one in which a strict moratorium on evictions is in place and enforced, and another in which evictions are allowed to resume at baseline or increased rates. We find, across scenarios, that evictions lead to significant increase in infections. Applying our model to Philadelphia using locally-specific parameters shows that the increase is especially profound in models that consider realistically heterogenous cities in which both evictions and contacts occur more frequently in poorer neighborhoods. Our results provide a basis to assess eviction moratoriums and show that policies to stem evictions are a warranted and important component of COVID-19 control.

Repository Contents

This repository contains the Python code to run the stochastic network simulations used to generate all the results in the paper. All the code is written in the form of Jupyter notebooks to be run on Google Colab.

The code is divided into a few different notebooks, with similar pre-ambles but then slightly different scenarios simulated. The file paths (used to save output) should work if you create a directory in your Google Drive called "COVID19 Eviction Modeling". The code imports a module (.py file with multiple functions defined) that we keep on Github in a public repository ('alsnhll/COVID19NetworkSimulations') - you can access it by entering your own Github account when Colab prompts you to. The code is optimized to run on a GPU, which you can select from the main menu using Runtime > Change Runtime type. It works best on a Colab Pro account.

In addition, the repository contains R code to download county-level data on cases and deaths for the US from the New York Times Github repository, aggregate it at the level of metropolitan statistical areas, and cluster these areas based on similarities in COVID-19 trajectories.

Files

  • code/eviction_merging_revisions_homogeneous_github.ipynb : This iPython notebook was used to simulate the effects of evictions in a homogeneous population, corresponding to figure 2 and 3 in the main text.
  • code/eviction_merging_2clusters_revision_github.ipynb : This iPython notebook contains the simulations that involved a heterogeneous population, divided into 2 clusters (high and low socio-economic status). This corresponds to figure 4 in the main text.
  • code/eviction_merging_3clusters_philly_github.ipynb : Simulations involving our case study of Philadelphia are in this iPython notebook. This corresponds to figure 5 in the main text.
  • code/eviction_doubling_shelters_homogeneous.ipynb : This iPython notebook was used to simulate the effect of homelessness in addition to doubling of households due to evictions and was used to generate figure S12 in the supplement.
  • code/plotting_examples_github.ipynb : We provide example code that was used to generate figures in the main text.
  • code/getUSAmetroData.R : This R script downloads COVID-19 case and death data from the New York times (at the county level), aggregates it to the level of Metropolitan Statistical Areas (MSAs), and produces plots. Comments in the code provide more information on the data processing steps.
  • code/clusterMetros.R : This R script runs Dynamical Time Warping on trajectories of cases and deaths for all MSAs with at least 1 million residents, and then applies heirarchical clustering to these trajectories to define the four trajectory types used in the paper. See Methods in the manuscript for more details.
  • code/Mobility_data : Monthly mobility matrices that contain 'percent of typical contacts' between the three topologically identified regions in Philadelphia. See Supplementary Methods in the manuscript for more details.
  • code/data : COVID-19 case and death reports from New York Times aggregated into metropolitan statistical areas (MSAs) with at least 1 million residents (53 cities), along with the key used to combined counties into MSAs. See Methods and Supplementary Methods in the manuscript for more details.

Related

Based on some of our preliminary findings, Mike Levy filed an affidavit on Aug 7 with the US District Court in Philadelphia, in regards to a case that an association of property owners, managers, and investers had filed against the City of Philadelphia to prevent them from continuing to enforce anti-eviction polices under their Emergency Housing Protection Act. On Aug 28, the court ruled in favor of the city, and this mathematical modeling work was cited as evidence that policies enacted by the city and state to prevent evictions were indeed related to reducing the spread of COVID-19. The judge's opinion statement, which cites the evidence from models, is here.

On Sept 4 2020, the CDC imposed a national moratorium on evictions until December 31st, 2020. Shortly after, it was challenged in federal court (Brown vs Azar). Some of our preliminary results were included as part of an amici curiae brief submitted by a consortium of public health and legal groups in relation to the case, which is available here. On Oct 29, 2020 the court ruled in favor of the CDC. As of writing, the CDC moratorium has been extended until June 30, 2021, and the order references our work

We have another paper examining the effect of transmission network structure on COVID-19 spread: Dynamics of COVID-19 under social distancing measures are driven by transmission network structure