This code is associated with the paper from Shapiro et al., "Metapopulation ecology links antibiotic resistance, consumption, and patient transfers in a network of hospital wards". eLife, 2020. http://doi.org/10.7554/eLife.54795
Accompanying code for Shapiro et al. 2019