ccn {mice}R Documentation

Number of (in)complete cases

Description

Calculates the number of (in)complete cases

Usage

## S4 method for signature 'data.frame'
ccn(x)
## S4 method for signature 'matrix'
ccn(x)
## S4 method for signature 'mids'
ccn(x)
## S4 method for signature 'data.frame'
icn(x)
## S4 method for signature 'matrix'
icn(x)
## S4 method for signature 'mids'
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 (in)complete data.

Author(s)

Stef van Buuren, 2010.

See Also

cc, ic, codecci, codelinkici

Examples

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

[Package mice version 2.11 Index]