etd_infected {anovir}R Documentation

Expected time of death: infected hosts

Description

Time when infected hosts are expected to have died due to their cumulative exposure to background mortality and mortality due to infection.

Usage

etd_infected(a1, b1, a2, b2, d1 = "", d2 = "", tmax = 100)

Arguments

a1, b1

location & scale parameters for background mortality

a2, b2

location & scale parameters for mortality due to infection

d1, d2

character: name of probability distributions describing background mortality and mortality due to infection, respectively

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] + H2[t] = 1, and cumulative survival is, S1[t].S2[t] = exp(-1) = 0.367

Value

numeric

See Also

etd_uninfected

Examples

print(etd_infected(a1 = 2, b1 = 0.5, a2 = 30, b2 = 5,
                   d1 = "Weibull", d2 = "Gumbel")) # 7.34
print(etd_infected(a1 = 20, b1 = 5, a2 = 3, b2 = 0.6,
                   d1 = "Gumbel", d2 = "Frechet")) # 17.84
print(etd_infected(a1 = 3, b1 = 0.6, a2 = 2, b2 = 0.5,
                   d1 = "Frechet", d2 = "Weibull")) # 7.37

[Package anovir version 0.1.0 Index]