Generate missing report
report_missing.Rd
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 invars
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 split using this variable. Useful for repeated measures.
- subjid_string
A character naming the column used to identify subject, default is
"subjid"
.
Details
This requires access to a data.frame of DLU file, this will be
derived from the package environment
and should be set using get_dlu
.