Learn R Programming

WhiteLabRt

A collection of functions related to novel methods for estimating reproduction number, R(t), created by the lab of Professor Laura White at Boston University School of Public Health.

Currently implemented methods

  • Temporal R(t) estimation: Two-step Bayesian back and nowcasting for linelist data with missing reporting delays, adapted in STAN from Li and White

    • Remaining todos:

      [] Implement the right-truncated NB distribution function in the likelihood and rng forms, see here for starters

  • Spatial R(t) estimation: Calculating time-varying reproduction number, R(t), assuming a flux of infectors between various adjacent states. This was adapted in STAN from Zhou and White

    • Remaining todos:

      [] Continuing working on non-centered parameterization, AR1 process, and partial pooling [] Use tidy bayes for QC

Future plans

  • Unified spatial-temporal R(t) estimation Combining the two methods above.
  • Genetic-based R(t) Using genetic data to inform R(t) calculation

Copy Link

Version

Install

install.packages('WhiteLabRt')

Monthly Downloads

138

Version

1.0.1

License

MIT + file LICENSE

Maintainer

Chad Milando

Last Published

August 16th, 2024

Functions in WhiteLabRt (1.0.1)

sample_cases

Sample cases
convert_to_linelist

Convert Case Counts to a Line List
create_caseCounts

Create a Case Counts Data Frame
plot.caseCounts

Plot Case Counts Over Time
WhiteLabRt-package

The 'WhiteLabRt' package.
plot.backnow

Plot Estimates or Reproduction Numbers
run_backnow

Run Back Calculation and Estimate Reproduction Numbers
create_linelist

Create a Line List from Report and Onset Dates
spatialRt

Run Spatial R(t) estimation and Estimate Reproduction Numbers
sample_onset_dates

Sample onset dates
sample_dates

Sample dates
out_list_demo

Sample back-calculation output
sample_multi_site

Sample multi site
sample_m_hier

Sample hierachical model output
si

Calculate a Serial Interval Distribution
sample_report_dates

Sample report dates
sample_location

Sample location
transfer_matrix

Transfer matrix