Identifies the starting age of the open age group needed to close the series.

dd_oag_agestart(data, multiple5 = TRUE)

Arguments

data

The dataset to be harmonized

multiple5

Whether the series contains 5 year age labels or not

Value

The starting age of the open age group needed to close the series.

Details

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.

Examples

if (FALSE) {
df <- series_isfull_df
oag_start <- dd_oag_agestart(df, multiple5 = TRUE)
}