| ard_missing {cards} | R Documentation | 
Missing ARD Statistics
Description
Compute Analysis Results Data (ARD) for statistics related to data missingness.
Usage
ard_missing(data, ...)
## S3 method for class 'data.frame'
ard_missing(
  data,
  variables,
  by = dplyr::group_vars(data),
  statistic = everything() ~ c("N_obs", "N_miss", "N_nonmiss", "p_miss", "p_nonmiss"),
  fmt_fn = NULL,
  stat_label = everything() ~ default_stat_labels(),
  ...
)
Arguments
| data | ( | 
| ... | Arguments passed to methods. | 
| variables | ( | 
| by | ( | 
| statistic | ( The value assigned to each variable must also be a named list, where the names
are used to reference a function and the element is the function object.
Typically, this function will return a scalar statistic, but a function that
returns a named list of results is also acceptable, e.g.
 | 
| fmt_fn | ( | 
| stat_label | ( | 
Value
an ARD data frame of class 'card'
Examples
ard_missing(ADSL, by = "ARM", variables = "AGE")
ADSL |>
  dplyr::group_by(ARM) |>
  ard_missing(
    variables = "AGE",
    statistic = ~"N_miss"
  )