Produce a Report Section Detailing Missing Values in a Dataset
missChk(
data,
use = NULL,
exclude = NULL,
type = c("report", "seq"),
maxpat = 15,
maxcomb = 25,
excl1pat = TRUE,
sortpatterns = TRUE,
prednmiss = FALSE,
omitpred = NULL,
baselabel = NULL,
...
)
nothing; outputs Quarto/RMarkdown text and tabs for a full report section
data frame or table to analyze
a formula or character vector specifying which variables to consider if not all those in data
a formula or character vector specifying which variables to exclude from consideration
specify 'seq'
to return a summary of sequential exclusions rather than produce a report
maximum number of missing data patterns allowed when counting occurrences of all combinations of variables' NA
s
maximum number of combinations for which to produce a combination dot plot
set to FALSE
to not list distinct combinatons that only occur for one observation
set to FALSE
to not sort patterns in decreasing frequency of missingness
set to TRUE
to use ordinal regression to predict the number of missing variables on an observation from the values of all the non-missing variables
a formula or character vector specifying a list of predictors not to use when predicting number of missing variables
base label for Quarto tabs made with maketabs()
passed to combplotp()
Frank Harrell
Quantifies frequencies of missing observations on a variable and missing variables on an observaton and produces variables tables and (depending on the number of NA
s) multiple graphic displays in Quarto tabs. The results are best understood by referring to this.
if (FALSE) {
missChk(mydata)
}
Run the code above in your browser using DataLab