icn {mice}R Documentation

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.

Author(s)

Stef van Buuren, 2010.

See Also

ccn, cc, ic, cci, ici

Examples

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

[Package mice version 2.22 Index]