Calculating basic life table parameters

Functions to calculate mx, ax, qx, etc. using standard demographic methods.

mx_to_qx() mx_ax_to_qx() qx_to_mx() mx_qx_to_ax() qx_ax_to_mx() mx_to_ax()

Convert between mx, qx, and ax values

gen_u5_ax_from_mx()

Generate ax for ages under 5 years, from mx

gen_u5_ax_from_qx()

Generate ax for ages under 5 years, from qx

iterate_ax() gen_ax_from_dx()

Ax iteration method from dx

gen_lx_from_qx() gen_qx_from_lx() gen_dx_from_lx() gen_nLx() gen_Tx() gen_ex()

Generate life table parameters

lifetable()

Generate a life table with all parameters

Aggregation and scaling

Functions for aggregating and scaling life tables. Includes conversions between single-year and abridged life tables.

agg_lt()

Aggregate life table(s) to less granular age groups

scale_qx()

Scale qx values over age

summarize_lt()

Calculate summary statistics for life tables

Population Projection

Functions for projecting populations forward in time.

ccmpp()

Cohort Component Method of Population Projection (CCMPP)

leslie_matrix()

Make Leslie matrix

nSx_from_lx_nLx_Tx()

Calculate survivorship ratios

gen_nLx_from_nSx()

Generate nLx life table parameter from survivorship ratios

gen_lx_from_nLx_ax()

Generate the lx life table parameter given nLx and ax.

Indirect estimation

Estimate demographic indicators using data that is indirectly related to the indicator

calc_nqx_brass()

Estimate child mortality from sbh information

sbh_panama_1976 sbh_trussell_coeffs

Example children ever born and surviving data from a Panama 1976 survey.

Fertility metrics

Functions for calculating fertility related metrics.

agg_tf()

Calculate total fertility aggregates

calculate_nrr()

Calculate Net Reproductive Rate (NRR)

Other

Additional miscellaneous functions.

validate_lifetable()

Validate life table

check_mx_ax_qx()

Check two of mx, ax, qx

Example data

Data included for testing or running demCore functions.

austria_1992_lt

Example life table: Austria, 1992, males

full_lt_pars

Regression parameters for abridged to full life table conversion

burkina_faso_data burkina_faso_initial_estimates

Burkina Faso example population data and ccmpp initial estimates

thailand_data thailand_initial_estimates

Thailand example population data and ccmpp initial estimates

sbh_panama_1976 sbh_trussell_coeffs

Example children ever born and surviving data from a Panama 1976 survey.