est_birthdays: helper function to calculate Nx (birthdays)

View source: R/utils.R

est_birthdaysR Documentation

helper function to calculate Nx (birthdays)

Description

Approximate average birthdays per annum in a reference period and age group between two censuses. We do this by taking geometric means within ages, either from age x in census 1 and age x + 5 in census 2 (nx.method = 2), or from ages x and x+5 in both censuses. We also divide out the age group width, presumably 5.

Usage

est_birthdays(pop1, pop2, AgeInt = NULL, nx.method = 2)

Arguments

pop1

numeric vector of population counts by age from census 1.

pop2

numeric vector of population counts by age from census 2.

AgeInt

numeric vector of age interval widths

nx.method

either 2 or 4. 4 is smoother.

Value

numeric vector of estiamte birthdays per annum per age


albinomatheus/toolbox documentation built on June 13, 2024, 5:42 a.m.