MyNixOS website logo
Description

Effective Reproduction Number Estimation.

Estimate the effective reproduction number from wastewater and clinical data sources.

ern

codecov Lifecycle:experimental

This repository stores the code used in ern, an R package to estimate the effective reproduction number ($R_t$) of pathogens using clinical or wastewater data.

This package is developed at the Public Health Agency of Canada / National Microbiology Laboratory. Please note this software is provivded “as is”, without warranty of any kind; see the license.

Installation

To install the latest version of this package:

devtools::install_github('phac-nml-phrsd/ern')

Note on JAGS

rjags is a dependency for ern, specifically for Rt calculations performed on clinical testing data using the "renewal" method for inference of the daily incidence from aggregated clinical data. If you are only using the "linear" method, or performing calculations using wastewater data, you do not need to worry about installing rjags and can skip this section.

rjags is the R interface for the JAGS Bayesian modelling library. Installation of JAGS is required and the latest version can be found here. It is recommended that you are using the latest version of R and JAGS for optimal usage of ern.

  • For users who are only unable to install the latest version of JAGS, we recommend downgrading to an R version that is less than 4.2. More details can be found here
  • For users who are having issues installing or running JAGS or rjags, we recommend consulting the JAGS discussion board.

Vignettes

To use ern to estimate $R_t$:

vignette("est-rt", package = "ern")

To learn more about how default distribution parameters were estimated in ern:

vignette("distributions", package = "ern")

Citation

You can cite ern with:

citation('ern')
#> 
#> To cite package 'ern' in publications use:
#> 
#>   Champredon D, Papst I, Yusuf W (2023). _ern: An R Package to Estimate
#>   the Effective Reproduction Number Using Clinical and Wastewater
#>   Surveillance Data_. National Microbiology Laboratory, Public Health
#>   Agency of Canada, Government of Canada.
#>   <https://github.com/phac-nml-phrsd/ern>.
#> 
#> A BibTeX entry for LaTeX users is
#> 
#>   @Manual{,
#>     title = {ern: An R Package to Estimate the Effective Reproduction Number Using Clinical and Wastewater Surveillance Data},
#>     author = {David Champredon and Irena Papst and Warsame Yusuf},
#>     organization = {National Microbiology Laboratory, Public Health Agency of Canada, Government of Canada},
#>     year = {2023},
#>     url = {https://github.com/phac-nml-phrsd/ern},
#>   }

For developers

Before creating a pull request into main, please be sure to pull main in to your development branch, resolve any conflicts, and then run devtools::check(args = c('--as-cran')) on your development branch. Ensure that all checks pass without issue.

For CRAN udpates

  • do a "check" using the R-devel version. Note: you also need the latestRtools associated with this version (download here)
  • resolve all errors, warnings and notes. There might be false positives; communicate with CRAN in that case.
Metadata

Version

2.0.0

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows