E_to_I: Sample the latent period corresponding to each specified...

Description Usage Arguments Value References Examples

View source: R/RcppExports.R

Description

E_to_I Geratee a random draw from the distribution specified for the latent period.

Usage

1
E_to_I(EI_model, E, mu_lat, var_lat)

Arguments

EI_model

A given integer characterising the type pf distribution for the latent period.

  1. Cyclic distribution using the LER (leaf emergence rate) derived by R Allen http://www.publish.csiro.au/ar/pdf/ar9780535:

    \frac{dL}{dt}=0.056cos(t-15) + 0.062

  2. Gamma distribution with given rate and shape parameters: rgamma

  3. Expoential distribution with given rate: rexp, the default.

E

The time at which the contact occurs, or strictly speaking the exposure time.

mu_lat

The mean latent period.

var_lat

The variance of the latent period for the gamma distribution.

Value

It returns a random draw from the latent period given the time of exposure.

References

\insertRef

ALL78acontactsimulator

\insertRef

ALL78bcontactsimulator

\insertRef

ALL87contactsimulator

Examples

1
2
3
E_to_I(1,-20,30,10)
E_to_I(2,-20,30,10)
E_to_I(3,-20,30,10)

holaanna/contactsimulator documentation built on Dec. 2, 2019, 2:39 a.m.