Git Product home page Git Product logo

comix_uk_summary_analysis's Introduction

CoMix summary analysis for the United Kingdom

  • This repository is unfinished, please return soon for the final version*

Running code

Will fill out this section

Installing dependencies

install.packages("drat")
drat:::add("epiforecasts")
install.packages("covidregionaldata") 

install.packages("data.table")
install.packages("ggplot2")
install.packages("ggthemes")
install.packages("lubridate")
install.packages("mgcv")
install.packages("patchwork")

# ## If ggthemr is not available for your version of R, install using devtools instead:
# install.packages("ggthemr") 
# # install.packages("devtools")
# # devtools::install_github("Mikata-Project/ggthemr")

Getting data

Zenodo descpription or summary of other published dataset

Running with shell script

For mac or linux:
Run sh run_analysis_mac.sh (runs with default of 1000 bootstraps), or to specify number of samples run with an argument, eg sh run_analysis_mac.sh 200

For windows:
Run sh run_analysis_windows.sh (runs with default of 1000 bootstraps), or to specify number of samples run with an argument, eg sh run_analysis_windows.sh 200

Data cleaning and analysis

Figures

Tables

File structure

Data cleaning and analysis

dm100_prep_for_avg_contact_data.R

dm101_calc_avg_contact_data.R

dm102_calc_avg_contact_data_risk.R

dm103_calc_avg_contact_data_se.R

dm111_calc_avg_proportions.R

Figures

fig1_avg_contacts.R

fig_att_likert_bins.R - will remove

fig_att_likert_bins_age.R

fig_facemasks.R

fig_likert_supp.R

fig_se_groups.R

Summarize data

results_text.R

tab_se_vars.R

Functions

bs_group.R

bs_facemask_proportion.R

ggthemr_workaround.R # can probably remove

utility_functions.R

Outputs

Figure 1 - Mean contacts by age

Description to come

Figure 2 - Mean contacts by reported risk and risk perception

Description to come

Figure 3 - Proportion of participants who wear masks

Description to come

Figure 4 - Mean contacts by employment type, income, and social group

Description to come

Table 1 - Participant demographics

Description to come

comix_uk_summary_analysis's People

Contributors

amygimma avatar

Stargazers

Shirley Kwok avatar Christoph Völtzke avatar Pietro Monticone avatar Sam Abbott avatar

Watchers

James Cloos avatar  avatar Chris  avatar Li Pi avatar

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.