g_l2: Case fatality rate (L2) from Ghani _et al._ (2005) of COVID19

Description Usage Arguments Value References Examples

View source: R/g_l2.R

Description

This function graphs the L2 of the COVID19 in RD. L2 = 100 * Deaths / (Deaths + Recovered), as recommended by Ghani et al. (2005) for the Dominican Republic

Usage

1
g_l2(saveplot = FALSE, savepng = FALSE)

Arguments

saveplot

Logical. Should save the ggplot objet to the .GlobalEnv? Default FALSE.

savepng

Logical. Should save a png version of the plot? Default FALSE.

Value

Graphic of L2 of COVID19 and save a copy in png format to the computer at the address defined in setwd().

References

A. C. Ghani, C. A. Donnelly, D. R. Cox, J. T. Griffin, C. Fraser, T. H. Lam, L. M. Ho, W. S. Chan, R. M. Anderson, A. J. Hedley, G. M. Leung, Methods for Estimating the Case Fatality Ratio for a Novel, Emerging Infectious Disease, American Journal of Epidemiology, Volume 162, Issue 5, 1 September 2005, Pages 479–486, https://doi.org/10.1093/aje/kwi230

Examples

1
2
g_l2()
g_l2(saveplot = TRUE, savepng = FALSE)

fidelmorla/drcovidplots documentation built on July 14, 2020, 4:02 p.m.