README.md

progressionEstimation

R and stan package for the estimation of microbial progression rates

This package uses Bayesian models implemented in stan to estimate the rates at which microbes progress from carriage to disease using case and carrier data.

DOI:10.1101/2021.01.08.425840 License: GPL v3 R-CMD-check codecov

Quick start

The case and carrier data can be input into the model using the spreadsheet progression_estimation_input.xlsx, or read into R and converted to a data frame or tibble with the same format. The required columns are:

A further optional column is:

Further columns can be added to use as alternative typing schemes; these can be selected in model fits using the type option. An example of a correctly-formatted spreadsheet can be found in the examples directory. If you are comfortable using R, then the package can be installed using devtools::install_github("https://github.com/nickjcroucher/progressionEstimation"). If you are more of a beginner with R, then you can:

Meta-analysis with stored data sets

There are four case-carrier datasets currently included in the package:

More detailed usage examples

For information on how to run alternative analyses, generate a greater range of plots, and use leave-one-out cross validation and Bayes factors for model comparisons, there are suggested workflows in the vignettes directory. The examples directory contains detailed analysis of Streptococcus pneumoniae invasiveness data.



nickjcroucher/progressionEstimation documentation built on April 15, 2023, 3:53 p.m.