a2, b2: numeric: location & scale parameters for mortality due to infection, respectively
d1, d2: character: probability distributions to describe background mortality and mortality due to infection, respectively
Returns
a vector
Details
The expected average longevity is calculated as the integral from zero to infinity for the product of the cumulative survival functions for background mortality and mortality due to infection, given values of a1, b1, d1, a2, b2, d2