
Convolution of the triangular distribution with the mixture component density (continuous case)
Source:R/conv_tri_dist.R
conv_tri_dist.RdWe split the folded normal distribution for Primary-Secondary, Primary-Tertiary and Primary-Quaternary routes into two parts
component 1: Co-Primary route
component 2+3: Primary-Secondary route
component 4+5: Primary-Tertiary route
component 6+7: Primary-Quaternary route
Arguments
- x
vector of index case to case intervals
- sigma
standard deviation of density distribution
- r
numeric; the observed ICC interval value used for calculating integration bounds in "lower" and "upper" quantity modes
- mu
mean of density distribution
- route
integer; between 1 and 7 and indicates the route of transmission.
- quantity
character; "zero", "lower", "upper"