CalcAgeMaxFert {paramDemo} | R Documentation |
Calculating Age at Maximum Fertility and Maximum Fertility.
Description
CalcAgeMaxFert
is used to calculate the age at maximum fertility, and the maximum fertility level from parametric models of fertility.
Usage
CalcAgeMaxFert (beta, modelFert = "quadratic", ageMatur = 0,
maxAge = 100)
Arguments
beta |
Numerical vector of age-specific fertility parameters (see details). |
modelFert |
Age-specific fertility model. Options are “ |
ageMatur |
Numerical value for the age at sexual maturity. |
maxAge |
Numerical value for the maximum possible age of reproduction. |
Details
For a given function g
of age-specific fertility, CalcAgeMaxFert
uses either an analytical solution to
\frac{dg}{dx} = 0
or a numerical approximation. For details of the parametric models available see CalcFert
.
Value
The function outputs a vector with the calculated or estimated age at maximum fertility, the maximum level of fertility, the error in the estimation and the number of iterations (for numerical approximations), and the age at maturity as specified by the user.
Author(s)
Fernando Colchero fernando_colchero@eva.mpg.de
See Also
CalcSurv
to calculate age-specific survival, CalcMort
to calculate age-specific mortality, CalcFert
to calculate age-specific fertility.
CalcAgeingRateMort
to calculate ageing rates from parametric models of age-specific mortality. CalcRemainLifeExp
to calculate remaining life expectancy from parametric models of age-specific mortality.
Examples
# Calculate age at maximum fertility from quadratic model:
maxg <- CalcAgeMaxFert(beta = c(b0 = 0.5, b1 = 0.01, b2 = 10))
# Calculate age at maximum fertility from gamma model:
maxg <- CalcAgeMaxFert(beta = c(b0 = 13, b1 = 2, b2 = 0.15),
modelFert = "gamma")