Description Usage Arguments Value Examples
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.
1 2 | rtSetMortRatesByAge(iMaxAge, pMortAge1 = 0.14, iMortMinAgeStart = 10,
iMortMinAgeStop = 50, fMortMinProp = 0.2, fMortOldProp = 0.3)
|
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. |
a vector of mortality probabilities
1 2 | vpMorts <- rtSetMortRatesByAge(iMaxAge = 100)
rtPlotMortRatesByAge(vpMorts,"males")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.