get_inc: Determine incubation period

Description Usage Arguments Details

View source: R/simHelpers.R

Description

get_inc selects number random values for the incubation period from a Gamma distribution with the specified shape and rate parameters.

Usage

1
get_inc(number, shape, rate)

Arguments

number

The number of random number draws to be made (integer).

shape

The shape parameter of the Gamma distribution to draw from (numeric).

rate

The rate parameter of the Gamma distribution to draw from (numeric).

Details

Currently, get_inc is a wrapper for the rgamma function from the stats package. The intent is to implement this more generically in the future to allow use of distributions other than Gamma.


jrcpulliam/LLsim documentation built on Feb. 5, 2020, 8:49 p.m.