av_long_infected: Average longevity: estimate for infected hosts

Description Usage Arguments Details Value See Also Examples

View source: R/main.R

Description

Calculates expected longevity of infected hosts due to background mortality and mortality due to infection

Usage

1
av_long_infected(a1, b1, a2, b2, d1 = "", d2 = "")

Arguments

a1, b1

numeric: location & scale parameters for background mortality, respectively

a2, b2

numeric: location & scale parameters for mortality due to infection, respectively

d1, d2

character: probability distributions to describe background mortality and mortality due to infection, respectively

Details

The expected average longevity is calculated as the integral from zero to infinity for the product of the cumulative survival functions for background mortality and mortality due to infection, given values of a1, b1, d1, a2, b2, d2

Value

a vector

See Also

av_long_uninfected

Examples

1
2
3
  av_long_infected(
    a1 = 3.0, b1 = 0.6, d1 = "Weibull",
    a2 = 2.5, b2 = 0.5, d2 = "Frechet") # 12.156

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