report_missing: Generate missing report

View source: R/report_missing.R

report_missingR Documentation

Generate missing report

Description

This function use the same method as described in the cctab, reporting missingness of the variables. It includes which form is the variable from, set as 'Derived' if not from DLU file. And missing percentage with which subjects are have missing value for that particular variable. This is internal function, not intend to use it directly by user.

Usage

report_missing(
  data,
  vars,
  select,
  row_split = NULL,
  subjid_string = getOption("cctu_subjid_string", default = "subjid")
)

Arguments

data

A data.frame from which the variables in vars should be taken.

select

a named vector with as many components as row-variables. Every element of 'select' will be used to select the individuals to be analyzed for every row-variable. Name of the vector corresponds to the row variable, element is the selection.

row_split

Variable that used for splitting table rows, rows will be splited using this variable. Useful for repeated measures.

subjid_string

A character naming the column used to identify subject, default is "subjid".

dlu

A data.frame of DLU file, this will be derived from the package environment and should be set using get_dlu.

Value

A data frame

See Also

cttab dump_missing_report get_missing_report reset_missing_report


shug0131/cctu documentation built on Nov. 10, 2023, 12:03 p.m.