missingAnalysis: A missingAnalysis Function

Description Usage Arguments Value Author(s) Examples

View source: R/missingAnalysis.R

Description

'missingAnalysis' function reveals the variables with missing values, the number of missing values for each variable, and in what combinations It also produces a plot for visualizing pattern of missing values and returns a data frame showing correlation between pairs of variables that has missing values It also returns a data frame with complete cases

Usage

1
2
3
4
5
6
7
missingAnalysis(
  dat,
  plot = FALSE,
  miss_pattern = FALSE,
  complete_dat = FALSE,
  miss_cor_pattern = FALSE
)

Arguments

dat

Data in data frame format.

plot

A plot of the missing data pattern.

miss_pattern

A data frame with missing data pattern for each variable.

complete_dat

A data frame with complete cases.

miss_cor_pattern

Correlation between variables with missing values.

Value

Returns a complete data frame, a tabulation of missing data pattern and missing data plot for combination of variables

Author(s)

Henry Nanji

Examples

1
2
3
library(VIM)
data(sleep)
missingAnalysis(sleep, complete_dat  = TRUE)

mdapack documentation built on July 1, 2020, 10:30 p.m.