Skip to content

bansallab/spatial_masking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data and code for "Spatiotemporal trends in self-reported mask-wearing behavior in the United States: Analysis of a large cross-sectional survey

This repository provides the data and source code for the following study: Juliana C Taube, Zachary Susswein, Shweta Bansal. "Spatiotemporal trends in self-reported mask-wearing behavior in the United States: Analysis of a large cross-sectional survey." JMIR Public Health and Surveillance. https://doi.org/10.2196/42128.

How to use this resource

To rerun the models and reproduce the figures, start by opening covid_masking.Rproj. From here, run the files in numerical order, starting with 06GENERATE-BIAS.r if you don't have access to the individual data (see Individual Data below). Code will not run correctly if files are sourced out of order. All necessary input data files should be in the repository, with the exception of a large CDC table with daily county mask mandate data which can be downloaded by users (see data/).

Estimates (data/estimates/)

Raw survey responses aggregated to the county-month level and model estimates at the county-month level for both the CTIS (fb) and ONM (onm) surveys.

  • fb_estimates_binomreg_FINAL.csv contains self-reported mask-wearing estimates (p_est) from binomial regression model only
  • fb_estimates_binomreg_rake_FINAL.csv contains self-reported mask-wearing estimates (p_est) from binomial regression model with raked and resampled individual responses
  • fb_estimates_binomreg_rake_debias_FINAL.csv contains self-reported mask-wearing estimates (unbiased_p) from binomial regression model with raked and resampled individual responses and an offset for bias
  • fb_estimates_binomreg_rake_debias_FINAL_excl.csv contains self-reported mask-wearing estimates (unbiased_p) from binomial regression model with raked and resampled individual responses and an offset for bias where influential fips (pareto k $\ge$ 0.7 in the initial model) are excluded
  • fb_comm_estimates_binomreg_rake_FINAL.csv contains community-reported mask-wearing estimates (comm_p_est) from binomial regression model with raked and resampled individual responses
  • fb_comm_estimates_binomreg_rake_FINAL_excl.csv contains community-reported mask-wearing estimates (comm_p_est) from binomial regression model with raked and resampled individual responses where influential fips (pareto k $\ge$ 0.7 in the initial model) are excluded
  • onm_estimates_binomreg_FINAL.csv contains self-reported mask-wearing estimates (onm_est) for the grocery store setting in the Outbreaks Near Me survey from the binomial regression model only
  • fb_processed.csv contains raw self-reported mask-wearing data (mask_prop_most) aggregated to the county-month level
  • onm_processed.csv contains raw self-reported mask-wearing data from the ONM survet (mask_grocery_very_prop) aggregated to the county-month level

Data (data/)

Reference files that may be required to run the code, including fips and zipcode crosswalk files, urban/rural classifications, etc.

Code (scripts/)

Scripts to clean data, rake survey responses, resampled weighted survey responses, run binomial regression models, and reproduce figures. Scripts for analyzing individual responses are provided for reproducibility but will not run without the original individual-level data (see Individual Data section below). File names briefly describe the purpose of each script (where COMM stands for community-reported and ONM for the Outbreaks Near Me dataset).

Individual Data

Individual CTIS survey responses cannot be shared by the authors, but researchers can visit https://cmu-delphi.github.io/delphi-epidata/symptom-survey/data-access.html if they would like to enter an agreement for data usage with CMU Delphi. Individual ONM responses also cannot be shared by the authors, but researchers can contact the OutbreaksNearMe team at Boston Children's Hospital and Momentive to inquire about access to these data.

If users have access to the individual data, they will be able to run files 01 through 05.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages