get_age_risk_sex: Auxiliary function to calculate the proportion by age...

View source: R/demographics.R

get_age_risk_sexR Documentation

Auxiliary function to calculate the proportion by age according to the total population and sex

Description

Auxiliary function to calculate the proportion by age according to the total population and sex

Usage

get_age_risk_sex(age, sex_vector, pyramid, sex)

Arguments

age

A vector with the ages of cases in years from 0 to 100 years

sex_vector

A vector with the sex of cases 'F' and 'M'

pyramid

A dataframe with the count of individuals

sex

A string specifying the sex being calculated

Value

A dataframe with the proportion by age according to the total population and sex


epiCo documentation built on April 4, 2025, 2:23 a.m.