Standardize, Evaluate, and Adjust Demographic Data

AbacusLIFTB | Literal translation of mortpak from Fortran. |

AbacusLIFTB_wrap | Wrapper to a rote translation of the Abacus version LIFTB. |

adjustAge | Proportionally adjust population or death counts by age to a... |

ADM | Mean absolute difference in survival rates. |

age2ageN | repeat age lower bounds once for each single age |

age2int | Infer age class intervals from lower age bounds. |

AGEN | Trim two age vectors to matching N-year age groups. |

ageRatioScore | Calculate the PAS age ratio score |

ageSexAccuracy | Calculate an age-sex accuracy index |

ageSexAccuracyDasGupta | Calculate Das Gupta's (1995) age sex accuracy index |

agesmth | Smooth populations in 5-year age groups using various methods |

AHI | Kannisto's age heaping index |

aomegaMORTPAK | Life expectancy in the open age group. |

arriaga_smth | E. Arriaga's method of population count smoothing |

avg_adj | calculate average of vector elements adjacent to and... |

ax.greville.mortpak | UN version of the Greville formula for a(x) from M(x) |

axPAS | PAS a(x) rule of thumb. |

axUN | UN a(x) estimates from either M(x), q(x), or both |

Bachi | calculate Bachi's index of age heaping |

beers | The ordinary modified Beers splitting methods |

beersExpand | Create the Beers ordinary or modified coefficient matrix |

birthCohorts | Create the historical birth cohorts for a census. |

calcAgeAbr | Calculate which abridged age group single ages belong to. |

calcAgeN | Calculate which large age group single ages belong to. |

carrier_farrag_smth | The Carrier-Farrag method of population count smoothing |

CoaleLi | Coale-Li age heaping index |

coef.extra_mortality | coef function for extra_mortality method |

dec.date | Convert date to decimal year fraction. |

DemoTools-package | DemoTools: Standardize, Evaluate, and Adjust Demographic Data |

extra_mortality | Extrapolate old-age human mortality curve using mortality... |

geta0CD | Coale-Demeny a(0) as function of m(0), region, and sex. |

geta1_4CD | Coale-Demeny 4a1 as function of M(0), region, and sex. |

getModelLifeTable | Wrapper to provide a single location to reference all model... |

grabill | The basic Grabill age-splitting method |

grabillExpand | Create the Grabill coefficient matrix. |

groupAges | Group single ages into equal age groups of arbitrary width |

groupOAG | Group down to a new open age class. |

ID | Index of dissimilarity |

inferAgeIntAbr | Infer abridged age groups widths. |

int2age | Infer lower age bounds from age class intervals. |

int2ageN | repeat age lower bounds once for each single age |

interp | Interpolate between two population age distributions. |

interpolatePop | Interpolate between two population age distributions. |

IRD | Index of relative difference. |

is_abridged | Detect if a vector of lower age bounds is plausibly of... |

is_LeapYear | Determine whether a year is a leap year. |

is_single | Logical checking of whether age classes appear single. |

johnsonAdjust | Adjust ages under 10 using a modification of Beers |

kkn_smth | Karup-King-Newton method of population count smoothing |

LTabr | Calculate an abridged-age lifetable. |

lx2dx | Derive lifetable deaths from survivorship. |

Lx2Tx | Derive lifetable total person years left to live from... |

lxdxax2Lx | Derive lifetable exposure from lx, ndx and nax. |

M04_2_D0 | rule of thumb for splitting infants from deaths under 5 |

M04_2_M0 | rule of thumb for estimating infant mortality rate from under... |

ma | A simple centered moving average function. |

mav | Calculate the moving average (mav) over 3 or 5 years. |

mav_smth | Smooth in 5-year age groups using a moving average |

maxA2abridged | Determine abridged ages up to a given maximum age group. |

monoCloseout | blend the Sprague upper boundary age estimates into monotonic... |

mx2qx | Derive nqx from nMx and nax. |

mxax2qx | Derive nqx from nMx and nax. |

Myers | Calculate Myer's blended index of age heaping |

names2age | detect ages from names of vector(s) |

Noumbissi | calculate Noumbissi's digit heaping index |

print.extra_mortality | Print function for extra_mortality method |

qx2lx | Derive lifetable survivorship (lx) from death probabilities. |

qxax2mx | Derive nMx from nqx and nax. |

qxmx2ax | Derive nax from nqx and nMx. |

ratx | Take consecutive ratios of a vector. |

RDM | Mean absolute difference in age-ratios of survival rates. |

REGRES | Calculate simple linear model by hand. |

rescaleAgeGroups | rescale counts in age groups to match counts in different age... |

rescale.vector | Rescale a vector proportionally to a new sum. |

rlog | Logging that does not cause jams. |

sexRatioScore | Calculate the PAS sex ratio score |

shift.vector | Shift a vector left or right. |

simplify.text | convert strings to concatenation of lower case alphabet |

spencer | Smoothing of an age structure by single years using Spencer's... |

splitMono | Split age groups using a monotonic spline. |

splitOscillate | An oscillatory average of age splits. |

splitUniform | Convert arbitrary age groupings into single years of age. |

Spoorenberg | Spoorenberg's total modified Whipple index |

sprague | The basic Sprague age-splitting method. |

spragueExpand | Create the Sprague coefficient matrix. |

strong_smth | A strong method of population count smoothing |

surv10 | Estimate survival curve from censuses spaced 10 years apart. |

surv5 | Estimate survival curve from censuses spaced 5 years apart. |

survN | Estimate survival curve from censuses spaced N years apart. |

survRatioError | Census survival estimation |

T9R5L | Feeney'S formula on 9 years to correct for heaping on... |

united_nations_smth | The old United Nations method of population count smoothing |

Whipple | Calculate Whipple's index of age heaping |

WI | Calculate Jdanov's old-age heaping index |

ypart | Determine the proportion of a year passed as of a particular... |

zelnik | Zelnik 11-term moving average to adjust for digit preference. |

zigzag | G. Feeney's method of removing the zigzag from counts in... |

zigzag_min | Objective function to minimize Feeney's zigzag method... |

zigzag_p | Smooth population counts using Feeney's zigzag method and... |

zigzag_smth | G. Feeney's method of smoothing counts in 5-year age groups. |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.