plot.incubestim {EpiLPS} | R Documentation |
This routine can be used to plot the estimated incubation
distribution based on an object of class incubestim
.
## S3 method for class 'incubestim'
plot(x, type = c("pdf", "cdf", "incubwin"), ...)
x |
An object of class |
type |
The type of plot. Default is "pdf" for the plot of the density function. Setting it to "cdf" returns the cumulative distribution function and "incubwin" gives a bar plot showing the width of the incubation window. |
... |
Further arguments to be passed to plot. |
The probability density function of the estimated incubation period with 95% credible envelope.
The cumulative distribution function of the estimated incubation period with 95% credible envelope.
A bar plot showing the width of the incubation windows.
Oswaldo Gressani oswaldo_gressani@hotmail.fr
set.seed(123)
simdat <- incubsim(n = 30, tmax = 20) # Simulate incubation data
data <- simdat$Dobsincub # Incubation bounds
incubfit <- estimIncub(x = data, niter = 500, tmax = 20, verbose = TRUE)
plot(incubfit)