This function integrates the component function over a specified interval.
Usage
integrate_component(
d,
mu,
sigma,
comp,
dist = c("normal", "gamma"),
lower = TRUE
)
Arguments
- d
numeric; the data point.
- mu
numeric; the mean value.
- sigma
numeric, the standard deviation.
- comp
integer; the component number, accepts values 1 to 7.
- dist
string; assumed distribution of the serial interval; take "normal" or "gamma".
- lower
logical; indicates whether to integrate the lower part (TRUE) or the upper part (FALSE).