cplot: cplot method for 'IncPeriod' object

Description Usage Arguments See Also Examples

View source: R/cplot.R

Description

The cplot method for IncPeriod object for plotting the estimated culmulative function of the incubation period given the covariates.

Usage

1
2
## Default S3 method:
cplot(object, X, conf.level = 0.95, ...)

Arguments

...

for S4 method only.

object

An object of class IncPeriod returned by the IncPeriod function.

X

A numeric vector for the covariates X.

conf.level

Confidence level. The default value is 0.95.

See Also

IncPeriod

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(IncPeriod)
data(covid19)

date.exposure <- covid19[, 1:2]
date.onset <- covid19[, 3]
date.hosp <- covid19[, 4]
age <- covid19$age
gender <- covid19$gender

res <- IncPeriod(date.exposure, date.onset, date.hosp, X = cbind(age, gender))
cplot(res, c(age = 42, gender = 1))

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