Learn R Programming

EFA.dimensions (version 0.1.8.1)

MISSING_INFO: Missing value statistics

Description

Frequencies and proportions of missing values

Usage

MISSING_INFO(data, verbose)

Value

A matrix with the following columns:

N_cases

The number of cases

N_missing

The number of missing values

Proportion

The proportion of missing values

Cum_Proportion

The cumulative proportion of missing values

Cum_N

The cumulative number of cases

Arguments

data

An all-numeric dataframe where the rows are cases & the columns are the variables.

verbose

(optional) Should detailed results be displayed in console? TRUE (default) or FALSE

Author

Brian P. O'Connor

Details

Provides the number of cases with each of N missing values (NA values), along with the proportions, cumulative proportions, and the cumulative Ns.

Examples

Run this code
MISSING_INFO(airquality)

# add NA values to the Rosenberg Self-Esteem scale items, for illustration
data_RSE_missing <- data_RSE
data_RSE_missing[matrix(rbinom(prod(dim(data_RSE_missing)), size=1, prob=.3)==1, 
                 nrow=dim(data_RSE_missing)[1])] <- NA

MISSING_INFO(data_RSE_missing)

Run the code above in your browser using DataLab