Identifies the starting age of the open age group needed to close the series.
dd_oag_agestart(data, multiple5 = TRUE)
The dataset to be harmonized
Whether the series contains 5 year age labels or not
The starting age of the open age group needed to close the series.
The function returns the starting age needed for the open age group that closes the series. This corresponds to the
AgeEnd
of the maximum AgeStart
in the series, for records with an AgeSpan > 0
per id, sex id and time label.
You can run getAnywhere(dd_oag_agestart)
to see the function definition.
if (FALSE) {
df <- series_isfull_df
oag_start <- dd_oag_agestart(df, multiple5 = TRUE)
}