Standardize, Evaluate, and Adjust Demographic Data

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 |

agesmth1 | Generic smoother over age or time |

aomegaMortalityLaws | 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 |

dth5_zigzag | Deaths by 5 year age groups |

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

five_year_roughness | Evaluate roughness of data in 5-year age groups |

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. |

heapify | Induce heaping on terminal digits 0 and 5 |

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. |

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

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

KannistoHeap | Kannisto's age heaping index |

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

loess_smth1 | Wrapper to LOESS using demographic data. |

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. |

mxax2qx_Backstop | adjust ax estimate so that qx less than or equal to 1 |

mxorqx2ax | wrapper to invoke PAS or UN ax methods given qx or mx |

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

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

Noumbissi | calculate Noumbissi's digit heaping index |

OPAG_simple | redistripute an open age group count over higher ages... |

poly_smth1 | Fit a polynomial to demographic data |

pop1m_ind | Indian male population 1991 |

pop1m_pasex | Male population by 1 year age groups |

pop5_mat | Matrix of population over 5 years |

pop5m_pasex | Male population by 5 year age groups |

popA_earlier | Abridged population from PAS AGEINT - earlier |

popA_later | Abridged population from PAS AGEINT - later |

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. |

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 |

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

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

zero_pref_sawtooth | Detect if heaping is worse on terminal digits 0s than on 5s |

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.