discretize_gamma {rtestim} | R Documentation |
Compute the discretized density function for gamma distribution
Description
The serial interval distribution expresses the probability of the symptom onset of a secondary infection occurred a given number of days after the primary infection. The serial interval distribution is commonly represented by a discretized Gamma distribution in literature, parametrized by the shape and scale parameters.
Usage
discretize_gamma(x, shape = 2.5, scale = 2.5, rate = 1/scale)
Arguments
x |
locations (times) where cases are observed. Must be nonnegative. |
shape , scale |
shape and scale parameters. Must be positive,
|
rate |
an alternative way to specify the scale. |
Value
probability mass of the discretized gamma distribution
Examples
discretize_gamma(1:30, shape = 1, scale = 1)
[Package rtestim version 1.0.0 Index]