Coder Social home page Coder Social logo

mask_mandates_adherence_attitudes's Introduction

Organization of code and data

This file describes the content of this data and code folder.

Mask mandate analysis

The USA folder contains the code and data required to reproduce Result sections 2.1 and 2.2 in the manuscript (and their accompanying robustness checks):

The files 1-data_preparation.ipynb and 1a-weather_data.ipynb are used to download data from public APIs and for data cleaning.

The file 2-state-analysis-main-state-analysis_event_study_delay.R is used to produce Fig. 1 and the files: 2a-state-analysis_event_study_main_normed_controlling_cases.R 2b-state-analysis-waves_analysis_event_study_main_normed.R 2d-state-analysis_event_study_main_normed_FM_ALL_mandates.R 2d-state-analysis_event_study_main_normed_FM_EMP_mandates.R 2e-state-analysis_event_study_main_normed_no_delay.R 2f-county-analysis_event_study_control_delay.R and 3-analysis_robustness_test_rate.R are for robutness checks.

The file 4-compliance_late_state_mandates.R is used to produce Fig. 4 and it's accompanying robustness checks. 5-mask_adherance_outcomes.R is used for the multilinear regression used in section 2.2.

International survey data

All code and data is present in the World folder.

Although we cannot share this data directly ourselves it is readily available for researchers at https://dataforgood.fb.com/docs/preventive-health-survey-request-for-data-access upon acceptance of the Facebook Data Use Agreement. Place this dataset in the international_survey/CovidBeliefsBehaviorsNormsSurvey folder.

The 1-preparing-survey-data-for-regression.ipynb file is used to process, clean and merge the survey data with control variables and then outputs a file ready for complex survey regression.

The file 2-survey_all_together.R is used to produce Fig. 5 while the other files 2a-survey_analysis_cases_adherence.R, 2b-survey_analysis_cases_norms.R, 2c-survey_analysis_deaths_adherence.R and 2d-survey_analysis_deaths_norms.R are used to produce the robustness checks.

mask_mandates_adherence_attitudes's People

Contributors

d-val avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

davidatoms

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.