I_to_R: Sample from the cyclic removal period using Brent method...

Description Usage Arguments Value References Examples

View source: R/RcppExports.R

Description

I_to_R Generate a random draw from the distribution specified for the latent period.

Usage

1
I_to_R(r, x_lo, x_hi, t, l, b, a)

Arguments

r

The initial value.

x_lo

A lower bound for the variable.

x_hi

The upper bound of the variable.

t

The current time: the infection time.

l

A random variable in (0,1)

Value

It returns a random draw from the removal period given the time of infection for the cyclic model.

References

\insertRef

DR18contactsimulator

Examples

1
I_to_R(10,0,1000,10,runif(1),0.062,0.93)

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