
Last chance! 50% off unlimited learning
Sale ends in
Calculate the total fertility rate (TFR) from age-specific fertility rates.
tfr(
data,
asfr = NULL,
age = age,
sex = NULL,
by = NULL,
denominator = 1,
suffix = NULL
)
A tibble.
Data frame with age-specific fertility rates and age
Age-specific fertility rates. Possibly an rvec.
<tidyselect
>
Age group labels. The labels must be
interpretable by functions
such as reformat_age()
and age_group_type()
.
The age groups must not have gaps,
and the highest age group must be "closed"
(ie have an upper limit.)
<tidyselect
>
Sex/gender of the child (not the parent).
<tidyselect
>
Separate total fertility rates are calculated
for each combination the by
variables.
If data
is a
grouped
data frame, then the grouping variables
take precedence over by
.
The denominator used to
calculate asfr
. Default is 1.
Optional suffix added to "tfr"
column in result.
Age-specific fertility rates do not
normally specify the sex of the children
who are born. In cases where they do, however,
rates have to be summed across sexes to
give the total fertility rates. If tfr()
is
supplied with a sex
argument, it assumes that
sex
applies to the births, and sums over the sexes.
Published tables of age-specific fertility rates often express the rates as births per 1000 person-years lived, rather than per person-year lived. (Sometimes this is expressed as "births per 1000 women".) In these cases
An rvec is a 'random vector',
holding multiple draws from a distribution.
Using an rvec for the asfr
argument to
tfr()
is a way of representing
uncertainty. This uncertainty is propagated
through to the TFR, which will
also be rvecs.
The total fertility rate is a summary measures for current fertility levels that removes the effect of age structure. Is obtained by summing up age-specific fertility rates, multiplying each rate by the width of the corresponding age group. For instance, the rate for age group "15-19" is multiplied by 5, and the rate for age group "15" is multiplied by 1.
The total fertility rate can be interpreted as the number of average children that a person would have, under prevailing fertility rates, if the person survived to the maximum age of reproduction. The hypothetical person is normally a woman, since age-specific fertility rates normally use person-years lived by women as the denominator. But it can apply to men, if the age-specific fertility rates are "paternity rates", ie rates that use person-years lived by men as the denominator.
lifeexp()
Calculate life expectancy from age-specific
mortality rates.
iran_fertility |>
tfr(asfr = rate,
by = c(area, time),
denominator = 1000)
Run the code above in your browser using DataLab