rtSetMortRatesByAge: setting age specific mortality rates for Tsetse

Description Usage Arguments Value Examples

Description

rtSetMortRatesByAge creates a vector of mortality rates by Age. Needs to be called separately for males & females.
I have set defaults in between those for M&F from Hat-trick.

Usage

1
2
rtSetMortRatesByAge(iMaxAge, pMortAge1 = 0.14, iMortMinAgeStart = 10,
  iMortMinAgeStop = 50, fMortMinProp = 0.2, fMortOldProp = 0.3)

Arguments

iMaxAge

maximum age

pMortAge1

mortality rate at day 1 (the maximum)

iMortMinAgeStart

Age at which min death rates start.

iMortMinAgeStop

Age at which min death rates stop.

fMortMinProp

What proportion of the maximum death rate on day 0 is the minimum death rate.

fMortOldProp

What proportion of the maximum death rate on day 0 is the death rate after iDeathMinAgeStop.

Value

a vector of mortality probabilities

Examples

1
2
vpMorts <- rtSetMortRatesByAge(iMaxAge = 100)
rtPlotMortRatesByAge(vpMorts,"males") 

AndySouth/rtsetse documentation built on May 5, 2019, 6:02 a.m.