Learn R Programming

healthiar (version 0.2.3)

get_ref_prop_pop: Calculates reference proportion of population

Description

This function calculates reference proportion of population. To be used in socialize() and standardize() in case that ref_prop_pop is not provided.

Usage

get_ref_prop_pop(df)

Value

A tibble with the columns

  • age_group containing numeric age values

  • ref_prop_pop containing numeric values

Arguments

df

Data frame or tibble with the data by geo_id_micro and age_group including a column for population

Author

Alberto Castro & Axel Luyten