Description Usage Arguments Value Author(s) Source Examples
View source: R/get_severe_age_shenzhen.R
Adapted from https://github.com/HopkinsIDD/covidSeverity
1 2 | get_severe_age_Shenzhen(outcome = c("severe", "moderate", "mild"),
nsamples = 2000)
|
outcome |
Outcome category ("severe", "moderate", or "mild") |
nsamples |
Number of samples to draw (defaults to 2000) |
A data.frame with nsamples
rows and 8 columns, corresponding to each
age group ('0-9', '10-19', ..., '70+')
Patrick Barks <patrick.barks@epicentre.msf.org>
Bi, Q., Wu, Y., Mei, S., Ye, C., Zou, X., Zhang, Z., Liu, X., Wei, L., Truelove, S., Zhang, T., Gao, W., Cheng, C., Tang, X., ..., and Feng, .T. (2020) Epidemiology and Transmission of COVID-19 in Shenzhen China: Analysis of 391 cases and 1,286 of their close contacts. medRxiv preprint. https://doi.org/10.1101/2020.03.03.20028423
1 2 3 4 5 | # draws from the posterior distribution of probability of severe outcome
post_samples <- get_severe_age_Shenzhen("severe")
# posterior median probability of severe outcomes for each age group
apply(post_samples, 2, median)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.