View source: R/discretize_gamma.R
discretize_gamma | R Documentation |
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.
discretize_gamma(x, shape = 2.5, scale = 2.5, rate = 1/scale)
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. |
probability mass of the discretized gamma distribution
discretize_gamma(1:30, shape = 1, scale = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.