powered by
Calculates the number of incomplete cases.
nic(x)
Number of elements in x with incomplete data.
x
An R object. Currently supported are methods for the following classes: mids, data.frame and matrix. Also, x can be a vector.
R
mids
data.frame
matrix
Stef van Buuren, 2017
ncc, cci
ncc
cci
nic(nhanes) # the remaining 12 rows nic(nhanes[, c("bmi", "hyp")]) # number of cases with incomplete bmi and hyp
Run the code above in your browser using DataLab