Learn R Programming

mice (version 2.25)

icn: Incomplete cases n

Description

Calculates the number of incomplete cases. The companion function for calculating the number of complete cases is ccn().

Usage

icn(x)

Arguments

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

Value

An integer with the number of elements in x with incomplete data.

See Also

ccn, cc, ic, cci, ici

Examples

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

Run the code above in your browser using DataLab