beers_sub: Beers subdivision, using ordinary or modified method.

Description Usage Arguments Value Examples

Description

With the ordinary method, each set of 5 subdivided values will always sum to the original data point given. With the modified method, some smoothing occurs, and this property is only true for the first and last given data point.

Usage

1
2
3

Arguments

points

A list of at least 5 numbers, eg, populations by 5-year age-band.

Value

For subdivision: a list 5 times as long as the original, with each point subdivided into 5.

Examples

1
2
3
4
# Subdivide population of UK (2015), ages 0-4, 5-9, 10-14, 15-19, 20-24 into single years.

beers_sub_ordinary(c(4042918, 3927745, 3529200, 3779712, 4174572))
beers_sub_modified(c(4042918, 3927745, 3529200, 3779712, 4174572))

mrc-ide/beers documentation built on Dec. 10, 2020, 12:10 a.m.