Learn R Programming

epiCo (version 1.0.1)

get_age_risk_sex: 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)

Value

A dataframe with the proportion by age according to the total population and 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