Learn R Programming

doublIn (version 0.1.0)

Plot_doublIn: Plot the incubation or latency time distribution

Description

Plot the estimated probability density function using a doublIn output object.

Usage

Plot_doublIn(
  doublIn_obj,
  label_x = "Days since infection",
  label_y = "Probability",
  p_shaded = 2,
  p_linepieces = c(0.5, 0.9, 0.95)
)

Value

Plot of the estimated probability density function.

Arguments

doublIn_obj

output list from function Estimate_doublIn containing parameter estimates.

label_x

Label for the x-axis.

label_y

Label for the y-axis.

p_shaded

Which area needs to be shaded, i.e. enclosed by which percentile from the vector p_linepieces (1, 2 or 3).

p_linepieces

Percentiles to indicate by vertical line pieces, given as vector of length three with probabilities between 0 and 1.

Author

Vera Arntzen, v.h.arntzen@math.leidenuniv.nl

Details

The function plots the estimated probability density function using the parameterisation of the generalized gamma distribution by Stacy et al. that includes the gamma and Weibull distributions as a special case.

References

Stacy, E. W., and G. A. Mihram, Parameter estimation for a generalized gamma distribution, Technometrics, 7 (3), 349–358, doi:10.1080/00401706.1965.10490268, 1965