The package provides the tools for estimating the incubation period and its association with risk factors when the exact dates of infection and symptoms’ onset may not be observed, which is written in the programming language R https://www.r-project.org.
You can install the package by typing the following codes:
library(devtools)
install_github("pakdaewo/IncPeriod")
library(IncPeriod)
?IncPeriod
The following information must be inputted into the main function 'IncPeriod'.
Note that either date.onset or date.hosp must be provided for each patient.
library(IncPeriod)
data(covid19)
date.exposure <- covid19[, 1:2]
date.onset <- covid19[, 3]
date.hosp <- covid19[, 4]
X <- covid19[, 5:6]
res <- IncPeriod(date.exposure, date.onset, date.hosp, X)
res
summary(res)
# cplot(res, X = c(age = 42, gender = 1)) # run this code for drawing the cumulative probability of the incubation period
Pak, D., Langohr, K., Ning, J., Cortés Martínez, J., Gómez Melis, G., & Shen, Y. (2020). Modeling the coronavirus disease 2019 incubation period: impact on quarantine policy. Mathematics, 8(9), 1631. https://doi.org/10.3390/math8091631
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.