Learn R Programming

qreport (version 1.0-1)

missChk: missChk

Description

Produce a Report Section Detailing Missing Values in a Dataset

Usage

missChk(
  data,
  use = NULL,
  exclude = NULL,
  type = c("report", "seq"),
  maxpat = 15,
  maxcomb = 25,
  excl1pat = TRUE,
  sortpatterns = TRUE,
  prednmiss = FALSE,
  omitpred = NULL,
  baselabel = NULL,
  ...
)

Value

nothing; outputs Quarto/RMarkdown text and tabs for a full report section

Arguments

data

data frame or table to analyze

use

a formula or character vector specifying which variables to consider if not all those in data

exclude

a formula or character vector specifying which variables to exclude from consideration

type

specify 'seq' to return a summary of sequential exclusions rather than produce a report

maxpat

maximum number of missing data patterns allowed when counting occurrences of all combinations of variables' NAs

maxcomb

maximum number of combinations for which to produce a combination dot plot

excl1pat

set to FALSE to not list distinct combinatons that only occur for one observation

sortpatterns

set to FALSE to not sort patterns in decreasing frequency of missingness

prednmiss

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

omitpred

a formula or character vector specifying a list of predictors not to use when predicting number of missing variables

baselabel

base label for Quarto tabs made with maketabs()

...

passed to combplotp()

Author

Frank Harrell

Details

Quantifies frequencies of missing observations on a variable and missing variables on an observaton and produces variables tables and (depending on the number of NAs) multiple graphic displays in Quarto tabs. The results are best understood by referring to this.

Examples

Run this code
if (FALSE) {
missChk(mydata)
}

Run the code above in your browser using DataLab