Man pages for timriffe/DemoTools
Standardize, Evaluate, and Adjust Demographic Data

AbacusLIFTBLiteral translation of mortpak from Fortran.
AbacusLIFTB_wrapWrapper to a rote translation of the Abacus version LIFTB.
adjustAgeProportionally adjust population or death counts by age to a...
ADMMean absolute difference in survival rates.
age2ageNrepeat age lower bounds once for each single age
age2intInfer age class intervals from lower age bounds.
AGENTrim two age vectors to matching N-year age groups.
ageRatioScoreCalculate the PAS age ratio score
ageSexAccuracyCalculate an age-sex accuracy index
ageSexAccuracyDasGuptaCalculate Das Gupta's (1995) age sex accuracy index
agesmthSmooth populations in 5-year age groups using various methods
AHIKannisto's age heaping index
aomegaMORTPAKLife expectancy in the open age group.
arriaga_smthE. Arriaga's method of population count smoothing
avg_adjcalculate average of vector elements adjacent to and...
ax.greville.mortpakUN version of the Greville formula for a(x) from M(x)
axPASPAS a(x) rule of thumb.
axUNUN a(x) estimates from either M(x), q(x), or both
Bachicalculate Bachi's index of age heaping
beersThe ordinary modified Beers splitting methods
beersExpandCreate the Beers ordinary or modified coefficient matrix
birthCohortsCreate the historical birth cohorts for a census.
calcAgeAbrCalculate which abridged age group single ages belong to.
calcAgeNCalculate which large age group single ages belong to.
carrier_farrag_smthThe Carrier-Farrag method of population count smoothing
CoaleLiCoale-Li age heaping index
coef.extra_mortalitycoef function for extra_mortality method
dec.dateConvert date to decimal year fraction.
DemoTools-packageDemoTools: Standardize, Evaluate, and Adjust Demographic Data
extra_mortalityExtrapolate old-age human mortality curve using mortality...
geta0CDCoale-Demeny a(0) as function of m(0), region, and sex.
geta1_4CDCoale-Demeny 4a1 as function of M(0), region, and sex.
getModelLifeTableWrapper to provide a single location to reference all model...
grabillThe basic Grabill age-splitting method
grabillExpandCreate the Grabill coefficient matrix.
groupAgesGroup single ages into equal age groups of arbitrary width
groupOAGGroup down to a new open age class.
IDIndex of dissimilarity
inferAgeIntAbrInfer abridged age groups widths.
int2ageInfer lower age bounds from age class intervals.
int2ageNrepeat age lower bounds once for each single age
interpInterpolate between two population age distributions.
interpolatePopInterpolate between two population age distributions.
IRDIndex of relative difference.
is_abridgedDetect if a vector of lower age bounds is plausibly of...
is_LeapYearDetermine whether a year is a leap year.
is_singleLogical checking of whether age classes appear single.
johnsonAdjustAdjust ages under 10 using a modification of Beers
kkn_smthKarup-King-Newton method of population count smoothing
LTabrCalculate an abridged-age lifetable.
lx2dxDerive lifetable deaths from survivorship.
Lx2TxDerive lifetable total person years left to live from...
lxdxax2LxDerive lifetable exposure from lx, ndx and nax.
M04_2_D0rule of thumb for splitting infants from deaths under 5
M04_2_M0rule of thumb for estimating infant mortality rate from under...
maA simple centered moving average function.
mavCalculate the moving average (mav) over 3 or 5 years.
mav_smthSmooth in 5-year age groups using a moving average
maxA2abridgedDetermine abridged ages up to a given maximum age group.
monoCloseoutblend the Sprague upper boundary age estimates into monotonic...
mx2qxDerive nqx from nMx and nax.
mxax2qxDerive nqx from nMx and nax.
MyersCalculate Myer's blended index of age heaping
names2agedetect ages from names of vector(s)
Noumbissicalculate Noumbissi's digit heaping index
print.extra_mortalityPrint function for extra_mortality method
qx2lxDerive lifetable survivorship (lx) from death probabilities.
qxax2mxDerive nMx from nqx and nax.
qxmx2axDerive nax from nqx and nMx.
ratxTake consecutive ratios of a vector.
RDMMean absolute difference in age-ratios of survival rates.
REGRESCalculate simple linear model by hand.
rescaleAgeGroupsrescale counts in age groups to match counts in different age...
rescale.vectorRescale a vector proportionally to a new sum.
rlogLogging that does not cause jams.
sexRatioScoreCalculate the PAS sex ratio score
shift.vectorShift a vector left or right.
simplify.textconvert strings to concatenation of lower case alphabet
spencerSmoothing of an age structure by single years using Spencer's...
splitMonoSplit age groups using a monotonic spline.
splitOscillateAn oscillatory average of age splits.
splitUniformConvert arbitrary age groupings into single years of age.
SpoorenbergSpoorenberg's total modified Whipple index
spragueThe basic Sprague age-splitting method.
spragueExpandCreate the Sprague coefficient matrix.
strong_smthA strong method of population count smoothing
surv10Estimate survival curve from censuses spaced 10 years apart.
surv5Estimate survival curve from censuses spaced 5 years apart.
survNEstimate survival curve from censuses spaced N years apart.
survRatioErrorCensus survival estimation
T9R5LFeeney'S formula on 9 years to correct for heaping on...
united_nations_smthThe old United Nations method of population count smoothing
WhippleCalculate Whipple's index of age heaping
WICalculate Jdanov's old-age heaping index
ypartDetermine the proportion of a year passed as of a particular...
zelnikZelnik 11-term moving average to adjust for digit preference.
zigzagG. Feeney's method of removing the zigzag from counts in...
zigzag_minObjective function to minimize Feeney's zigzag method...
zigzag_pSmooth population counts using Feeney's zigzag method and...
zigzag_smthG. Feeney's method of smoothing counts in 5-year age groups.
timriffe/DemoTools documentation built on Sept. 11, 2018, 6:54 a.m.