variableStatistics: variableStatistics

variableStatisticsR Documentation

variableStatistics

Description

A function that does various statistics on missingness per variables

Usage

variableStatistics(
  data,
  correlation_method = "pearson",
  gof_method = "kolmogorov"
)

Arguments

data

A data frame (rows as samples, columns as variables)

correlation_method

the method to compute correlations 'pearson' (default), 'spearman', 'kendall'

gof_method

the method to compute goodness of fit with left-censored data 'kolmogorov' (default), 'cucconi'

Value

result A list containing [[1]] a matrix of: percent missingness, quartile cutoffs, mean, missingness type, variance, distribution for each variable; [[2]] a matrix containing missingness percents by missingness type and [[3]] the overall missingness percentage


BeanLabASU/metabimpute documentation built on Feb. 5, 2023, 11:41 p.m.