(D)ate (C)onsistency (C)omparison Inconsistent Records Plot
Source:R/dcc_inconsistent_plot.R
dcc_inconsistent_plot.RdGenerates a histogram of absolute day differences for inconsistent records, binned into customizable intervals with a final open-ended category.
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.
- date_1_name
Character. Label for the first date variable, used in the plot subtitle. Default is
"date 1".- date_2_name
Character. Label for the second date variable, used in the plot subtitle. Default is
"date 2".- day_groups
List of numeric vectors of length 2. Each element is a
c(lower, upper)pair defining a bin. The last bin is extended toInfand labelled"X+". Default is 10-day bins from 0 to 100.