Description Usage Arguments Details Value See Also Examples
This function takes a pathogen exposure and calculates the risk of infection over its persistence within host
1 |
exposure |
The initial level of the pathogen exposure |
survival_time |
The range of time to calculate the risk over (default infinity) |
hazard_risk |
The per time risk of exposure during persistence |
clr |
The clearance rate of exposure |
The risk is derived using a surival function. exposure = p, survival_time = T, hazard_risk = β, and clearance rate = c. Note: every calculation assumes that time starts at 0
The pathogen is assumed to be cleared exponentially (P(0) = p)
dP/dt = -cP
The pathogens pose a risk of infection during their persistance that can be used to calculate the survival function
λ(t) = β * P(t)
S(T) = exp(-integral(0, T) λ(t)dt)
S(t) = exp(-β/c * p * (1 - exp(-cT))
which simplifies as T -> Inf to
S(T) = exp(-β/c * p)
The risk is 1 - S(T).
risk calculation over the time specified in survival time
calc_risk_mult for mulitple exposures.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.