Smooth population counts in 5-year age groups.

smooth_age_5_arriaga(Value, Age, OAG = TRUE)

## Arguments

Value numeric vector of counts in single, abridged, or 5-year age groups. numeric vector of ages corresponding to the lower integer bound of the counts. logical. Whether or not the top age group is open. Default TRUE.

## Value

numeric vector of smoothed counts in 5-year age groups.

## Details

The open age group is aggregated down to be evenly divisible by 10. This method accounts for the youngest and oldest age groups. Age classes must be cleanly groupable to 5-year age groups. 10-year age groups are constrained to sum to their original totals.

## References

Arriaga EE, Johnson PD, Jamison E (1994). Population analysis with microcomputers, volume 1. Bureau of the Census. Arriaga EE, others (1968). “New life tables for Latin American populations in the nineteenth and twentieth centuries.” New life tables for Latin American populations in the nineteenth and twentieth centuries..

## Examples

Ages         <- seq(0, 80, by = 5)
AMales       <- smooth_age_5_arriaga(Value = pop5m_pasex, Age = Ages, OAG = TRUE)