cci {mice} | R Documentation |
Extracts (in)complete case indicator
## S4 method for signature 'data.frame' cci(x) ## S4 method for signature 'matrix' cci(x) ## S4 method for signature 'mids' cci(x) ## S4 method for signature 'data.frame' ici(x) ## S4 method for signature 'matrix' ici(x) ## S4 method for signature 'mids' ici(x)
x |
An |
This array is useful for extracting subsets of the complete
and incomplete data. Missing values in x
are coded
as NA.
A logical vector indicating the complete and the incomplete
cases, with a length of nrow(x)
if x
is a data.frame
or matrix, and with length length(x)
in other cases.
Stef van Buuren, 2010.
na.omit
, cc
, ic
,
codeccn, codelinkicn
cci(nhanes) # indicator for 13 complete cases ici(nhanes) # indicator for 12 rows with incomplete cases f <- cci(nhanes[,c("bmi","hyp")]) # complete data for bmi and hyp nhanes[f,] # obtain all data from those with complete bmi and hyp