This function calculates the rate of consistency between two date variables, further disaggregating by geographic level, using data from the electronic immunization registry (EIR).
Arguments
- data.EIR
Data frame. A data frame containing individual vaccination records. See
immunABC.EIRfor expected structure.- date_1
Character. The name of a DATE formatted variable present in the EIR. This variable is the date we are checking for consistency.
- date_2
Character. The name of a DATE formatted variable present in the EIR. This variable is the date we are checking consistency against. Represents a date chronologically earlier than date_1.
- geo_level
Character. The geographic level to aggregate results by. Must be "ADM0", "ADM1" or "ADM2". If not specified, the default is "ADM0".
- birth_cohorts
Numeric (optional). A vector specifying the birth cohort(s) for which the rate should be calculated. If
NULL(default), all available cohorts are used.