File: cci.Rd

package info (click to toggle)
r-cran-mice 3.17.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,380 kB
  • sloc: cpp: 121; sh: 25; makefile: 2
file content (33 lines) | stat: -rw-r--r-- 904 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cci.R
\name{cci}
\alias{cci}
\title{Complete case indicator}
\usage{
cci(x)
}
\arguments{
\item{x}{An \code{R} object. Currently supported are methods for the
following classes: \code{mids}.}
}
\value{
Logical vector indicating the complete cases.
}
\description{
The complete case indicator is useful for extracting the subset of complete cases. The function
\code{cci(x)} calls \code{complete.cases(x)}.
The companion function \code{ici()} selects the incomplete cases.
}
\examples{
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
}
\seealso{
\code{\link{complete.cases}}, \code{\link{ici}}, \code{\link{cc}}
}
\author{
Stef van Buuren, 2017.
}
\keyword{univar}