stratify_by_age: Stratify the population by age

View source: R/RcppExports.R

stratify_by_ageR Documentation

Stratify the population by age

Description

Stratifies the population and returns the population size of each age group.

Usage

stratify_by_age(age_sizes, limits = as.numeric(c(1, 5, 15, 25, 45, 65)))

Arguments

age_sizes

A vector containing the population size by age (first element is number of people of age 1 and below)

limits

The upper limit to each age groups (not included) (1,5,15,25,45,65) corresponds to the following age groups: <1, 1-4, 5-14, 15-24, 25-44, 45-64 and >=65.

Value

A vector with the population in each age group.


MJomaba/flu-evidence-synthesis documentation built on April 26, 2022, 11:12 p.m.