Giter VIP home page Giter VIP logo

datapapermo's Introduction

datapaperMO

analysis of toy_outbreak_long dataset from the o2geosocial package

install package o2geosocial from "alxsrobert/o2geosocial". To generate all figures from main and supplement, run the script generate_figure.R.

install.packages("devtools")
library(devtools)
install_github("alxsrobert/o2geosocial")
library(o2geosocial)
source("R/generate_figures.R", echo = TRUE)

To generate a new simulated dataset with different input parameters (number of cases, R0, spatial parameters...), edit the lines 8-40 in analysis_generated_data.R. Run the rest of the script to generate the o2geosocial runs on the dataset.

List of files in the repository:

  • In data:

  • In R:

    • library_importation.R: import libraries for analysis.
    • function_generate_dataset.R: Functions to generate toy_outbreak_long.
    • function_prepare_for_figures.R: Function to generate summary statistics on run.
    • function_generate_figures_main.R: function to generate figures similar to figure 3, 4, 5 and 6.
    • function_supplement_figures.R: function to generate figures similar to figures in the supplement.
    • load_all_analysis.R: Load all o2geosocial runs.
    • generate_figs_analysis_threshold.R: Load o2geosocial runs with different import thresholds and save files to generate figures.
    • generate_figs_analysis_likelihoods.R: Load o2geosocial runs with different likelihoods and save files to generate figures.
    • generate_figs_analysis_genotype.R: Load o2geosocial runs with different proportion of genotyped cases and save files to generate figures.
    • load_data_distributions.R: Load prior distributions.
    • analysis_generated_data.R: Script to run o2geosocial on toy_outbreak_long.
    • generate_figure.R: Generate all figures (main + supplement).

datapapermo's People

Contributors

alxsrobert avatar sbfnk avatar

Watchers

 avatar  avatar

Forkers

sbfnk

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.