Learn R Programming

mice (version 3.16.0)

nic: Number of incomplete cases

Description

Calculates the number of incomplete cases.

Usage

nic(x)

Value

Number of elements in x with incomplete data.

Arguments

x

An R object. Currently supported are methods for the following classes: mids, data.frame and matrix. Also, x can be a vector.

Author

Stef van Buuren, 2017

See Also

ncc, cci

Examples

Run this code
nic(nhanes) # the remaining 12 rows
nic(nhanes[, c("bmi", "hyp")]) # number of cases with incomplete bmi and hyp

Run the code above in your browser using DataLab