Get PMF of a discretized shifted Gamma distribution
Source:R/utils_dists.R
get_discrete_gamma_shifted.Rd
This function specifies a discretized shifted Gamma distribution (shifted such that the minimum is at 1) using a mean and standard deviation parameterization.
The shift makes the distribution attractive for modeling generation time distributions, which are often assumed to have zero probability mass for a generation time of zero (as this is incompatible with the renewal equation).
Arguments
- gamma_mean
Mean of the shifted Gamma distribution.
- gamma_sd
Standard deviation of the shifted Gamma distribution.
- maxX
Right truncation point. All probability mass beyond
maxX
will be assigned tomaxX
. IfNULL
(default), this is automatically chosen such that the last bin has approximately less than 0.5% of the probability mass.