README.md

IncPeriod

Description

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.

Installation

You can install the package by typing the following codes:

library(devtools)
install_github("pakdaewo/IncPeriod")

library(IncPeriod)
?IncPeriod

Implementation

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.

Example (covid19)

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

Reference

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



pakdaewo/IncPeriod documentation built on Feb. 3, 2022, 12:33 a.m.