cci | R Documentation |
The complete case indicator is useful for extracting the subset of complete cases. The function
cci(x)
calls complete.cases(x)
.
The companion function ici()
selects the incomplete cases.
cci(x)
x |
An |
Logical vector indicating the complete cases.
Stef van Buuren, 2017.
complete.cases
, ici
, cc
cci(nhanes) # indicator for 13 complete cases
cci(mice(nhanes, maxit = 0))
f <- cci(nhanes[, c("bmi", "hyp")]) # complete data for bmi and hyp
nhanes[f, ] # obtain all data from those with complete bmi and hyp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.