Title: | Calculations for Epidemiological Intervals |
---|---|
Description: | Calculating epidemiological intervals |
Authors: | Michael DeWitt [aut, cre] |
Maintainer: | Michael DeWitt <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.1.9001 |
Built: | 2024-11-21 06:07:01 UTC |
Source: | https://github.com/medewitt/intervalcalc |
This function takes data from the prep_interval_data
function
and fits it to a series of speficied distributions
fit_interval_data( interval_data, distribution = c("gamma", "gamma-trunc"), stan_opts = list(), return_raw = FALSE )
fit_interval_data( interval_data, distribution = c("gamma", "gamma-trunc"), stan_opts = list(), return_raw = FALSE )
interval_data |
a named list containing the interval data |
distribution |
a string vector indicating the distributions with which to fit the data |
stan_opts |
a named list with additional options passed to CmdStanR |
return_raw |
a logical, should the samples be returned |
Serial Interval Data from Nishiura et al
nishiura
nishiura
a data.frame with 28 rows and 10 columns
Row number
Certainty of the Classification
County of Diagnosis
Onset for index case
Onset for infected individual
Symptom interval for infector
Symptom interval for infector
Symptom interval for infectee
Symptom interval for infectee
Source for the data
Supporting materials for Nishiura H, Linton NM, Akhmetzhanov AR 2020 "Serial interval of novel coronavirus (COVID-19) infections" International journal of infectious diseases 93: 284–6 (doi:10.1016/j.ijid.2020.02.060)
This function can be used to prepare data for fitting
prep_interval_data(dat)
prep_interval_data(dat)
dat |
a data.frame with columes named er, el sl,sr |
a named list for use with fit_interval_data