Auxiliary function to calculate the proportion by age according to the total population and sex
get_age_risk_sex(age, sex_vector, pyramid, sex)
A dataframe with the proportion by age according to the total population and sex
A vector with the ages of cases in years from 0 to 100 years
A vector with the sex of cases 'F' and 'M'
A dataframe with the count of individuals
A string specifying the sex being calculated