Reconcile early age groups for births.

dd_firstages_compute_births(data)

Arguments

data

The data to be harmonized

Value

A dataset with early age groups reconciled e.g 0-14 becomes 10-14

Details

In cases where for example 10_14 is missing and 0_14 is present, convert the latter to the former. Another case is if 0-4 is missing and 0-1 and 1-4 are present, then sum both to get 0-4. You can run getAnywhere(dd_firstages_compute_births) to view the definition of this function.

Examples

if (FALSE) {
df <- firstages_compute_births_df
df <- dd_firstages_compute_births(df)
}