Reconcile Totals, in cases where reported values are different from calculated values, after having standardized age series. If the computed total is greater than reported total, then replace reported with computed. If computed is less than reported, then add difference to "Unknown" age

dd_validate_totals_over_age(data)

Arguments

data

The data to be harmonized

Value

A dataset with reconciled Totals i.e. reported totals == computed totals

Details

See the "Validating totals over age" vignette for more details about this function.

Examples

if (FALSE) {
df <- vitals_std_full_sample
df <- dd_validate_totals_over_age(df)
}