Functions for working with demographic data
Functions for common tasks in demographic analyses. Some functions are aimed at end-users, and others at developers. package
Data manipulation
logit()
,invlogit()
Logistic transformationtrim_01()
Trim values to interval (0, 1)rr3()
Randomly round to base 3Labels
age_labels()
Create age labels.age_lower()
, age_mid()
, age_upper()
Limits and midpoints of age groupscombine_age()
Merge age group labelsreformat_age()
Reformat age group labelsreformat_sex()
Reformat sex labelsset_age_open()
Specify oldest age groupLife expectancy, life tables
ex_to_lifetab_brass()
Brass logit model.lifeexp()
Life expectancylifetab()
Full life tableq0_to_m0()
Infant mortality** Fertility**
tfr()
Total fertility rateChecking arguments
check_n()
Check an integer scalarData manipulation
check_no_overlap_colnums()
Checking for argument clashgroups_colnums()
Get column numbers for grouping variablesmatrix_to_list_of_cols()
, matrix_to_list_of_rows()
Split matrixto_matrix()
Convert data frame to matrixLabels
age_group_type()
Infer type of age group labelcheck_age()
Validity checks for age group labelsfind_label_female()
, find_label_male()
Identify sex or gender labelsfind_var_age()
, find_var_sexgender()
, find_var_time()
Identify age, sex/gender, time variablesUseful links:
Maintainer : John Bryant john@bayesiandemography.com
Other contributors:
Useful links