Sahil Loomba, Alexandre de Figueiredo, Simon Piatek, Kristen de Graaf, Heidi Larson
This repository contains code and data for our paper in Nature Human Behaviour on measuring the impact of exposure to COVID-19 vaccine misinformation on the intent to vaccinate in the UK and USA.
These notebooks are intended to aid importing, transforming, and analysing the survey data in this study. You may use Jupyter nbviewer to view these notebooks, or view their static (.html) versions in .doc/
, or view them on OSF (note: OSF link currently hosts a preprint version of the manuscript).
tables_figures.ipynb
: generates all figures and tables of the paperimport_data.ipynb
: demo of reading and transforming survey data for use in any downstream statistical modeling;view on OSFstatistical_analyses.ipynb
: demo statistical modeling and generation of figures and tables in the paper;view on OSF
.dat/
: contains processed survey data; sufficient to run all statistical analyses in the paper.doc/
: contains full survey questionnaire and static (.html) versions of the Jupyter Notebooks.src/paper.py
: contains helper functions to generate all figures and tables of the paper.src/models.py
: contains functions to define and fit all Bayesian models described in the paper.src/utils.py
: contains helper functions to import and transform survey data, compute and plot posterior statistics.src/bayesoc.py
: defines python classesDim()
,Outcome()
,Society()
andModel()
to implement general Bayesian socio-demographic models using pystan
- View paper in Nature Human Behaviour
- View project on GitHub
View paper preprint on medRxivView project on OSF
Loomba, S., de Figueiredo, A., Piatek, S.J. et al. Measuring the impact of COVID-19 vaccine misinformation on vaccination intent in the UK and USA. Nat Hum Behav (2021). https://doi.org/10.1038/s41562-021-01056-1