ccn {mice}R Documentation

Complete cases n

Description

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

Usage

ccn(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 complete data.

Author(s)

Stef van Buuren, 2010.

See Also

icn, cc, ic, cci, ici

Examples

ccn(nhanes) # 13 complete cases

[Package mice version 2.22 Index]