get_inf: Determine infectious period

Description Usage Arguments Details

View source: R/simHelpers.R

Description

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

Usage

1
get_inf(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_inf 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.