(V)accination (T)imeliness Inconsistent Records Plot
Source:R/vt_inconsistent_plot.R
vt_inconsistent_plot.RdGenerates a lollipop plot showing the distribution of untimely records, grouping them in bins of days outside of the timeliness window. The UNTIMELY_LATE records and the UNTIMELY_EARLY records are shown in separate rows.
Arguments
- data.EIR
Data frame. A data frame containing individual vaccination records. See
immunABC.EIRfor expected structure.- data.schedule
Data frame. A data frame defining the vaccination schedule. See
immunABC.schedulefor expected structure.- vaccines
Character (optional). A character vector specifying the doses to include in the analysis. If
NULL(default), all doses indata.scheduleare included and pooled together.- birth_cohorts
Numeric (optional). A vector specifying the birth cohort(s) to include in the plot. If
NULL(default), all available cohorts are used. Note that specifying cohorts excludes records with nodate_birth, so theDATE_MISSINGcategory may be undercounted.- day_groups
List of numeric vectors of length 2. Each element is a
c(lower, upper)pair defining each bin's lower and upper limit in days. Bins must start at 0 and be contiguous (each bin starts where the previous one ends). The last bin is extended toInf, so its upper value is ignored (e.g.c(90, 120)andc(90, 100)both produce a "90+" bin). Default is 10-day bins from 0 to 100.