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)
The data to be harmonized
A dataset with reconciled Totals
i.e. reported totals == computed totals
See the "Validating totals over age" vignette for more details about this function.
if (FALSE) {
df <- vitals_std_full_sample
df <- dd_validate_totals_over_age(df)
}