etd_uninfected: Expected time of death: uninfected hosts

Description Usage Arguments Details Value See Also Examples

View source: R/main.R

Description

Time when uninfected hosts are expected to have died due to their cumulative exposure to background mortality.

Usage

1
etd_uninfected(a1, b1, d1 = "", tmax = 100)

Arguments

a1, b1

location & scale parameters for background mortality

d1

character: name of probability distribution describing background mortality

tmax

numeric. Maximum value of t for which expected time of death is searched; defaults to 100. Minimum time is zero (0)

Details

It is the time t when, H1[t] = 1, and cumulative survival is, S1[t] = exp(-1) = 0.367

Value

numeric

See Also

etd_infected

Examples

1
2
3
print(etd_uninfected(a1 = 2, b1 = 0.5, d1 = "Weibull")) # 7.38
print(etd_uninfected(a1 = 20, b1 = 5, d1 = "Gumbel")) # 20
print(etd_uninfected(a1 = 3, b1 = 0.6, d1 = "Frechet")) # 32.06

anovir documentation built on Oct. 24, 2020, 9:08 a.m.