Description Usage Arguments Value Author(s) See Also Examples
Provides a scaled gamma fertility schedule,
f(x) = \frac{1}{Γ(k)θ^k} x^{(k-1)}e^{-\frac{x}{θ}}
for a given set of parameter values and sequence of ages.
1 2 3 |
tfr |
Numeric value for total fertitliy rate of the returned age schedule. |
x |
Vector for the sequence of ages. |
mean_cb |
Numeric value for the mean age of mothers at child birth. Equivalent to kθ. |
shape |
Numeric poisitive value for schedule shape. Used direcly in |
start_fertage |
Numeric value for the start of the fertility age range. Equivalent to α in the equation above. |
width_fertage |
Numeric value for the width of the fertility age range. Equivalent to δ in the equation above. |
... |
Additional arguments passed to |
Returns the f(x) values from a gamma schedule of age specific fertility. The age range for the calculation can take any sequence of positive numbers, such as ages in single or 5-year intervals. The function is primarily intended for use in decomposing a total fertility rate into an age-specific values.
The parameters relate the mean age of child bearing (mean_cb
) and the shape of the schedule (shape
). The shape and mean age parameters are used to determine the scale parameter of the gamma distribution.
The arguments for the start and width of the fertility age range (start_fertage
, width_fertage
) are used to select where the gamma distribution is applied over the range of ages given in x
.
Guy J. Abel
1 2 3 4 5 6 7 8 | #single year
f0 <- gamma_fert(tfr = 4, mean_cb = 25, shape = 5)
plot(f0, type = "l")
#five year
f1 <- gamma_fert(tfr = 5.8, mean_cb = 28, x = seq(from = 0, to = 100, by = 5), shape = 3)
plot(f1, type = "l")
sum(f1) * 5
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.