Revision 9ae1e67cb5e13c5bbc731a5fc56a0053182f16b0 authored by Matthias Templ on 11 February 2020, 16:20:02 UTC, committed by cran-robot on 11 February 2020, 16:20:02 UTC
1 parent 775c7e1
Raw File
missPatterns.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/missPatterns.R
\name{missPatterns}
\alias{missPatterns}
\alias{zeroPatterns}
\title{missing or zero pattern structure.}
\usage{
missPatterns(x)

zeroPatterns(x)
}
\arguments{
\item{x}{a data frame or matrix.}
}
\value{
\item{groups }{List of the different patterns and the observation
numbers for each pattern} \item{cn }{the names of the patterns coded as
vectors of 0-1's} \item{tabcomb}{the pattern structure - all combinations of
zeros or missings in the variables} \item{tabcombPlus}{the pattern structure
- all combinations of zeros or missings in the variables including the size
of those combinations/patterns, i.e. the number of observations that belongs
to each pattern.} \item{rsum}{the number of zeros or missing values in each
row of the data set.} \item{rindex}{the index of zeros or missing values in each
row of the data set}
}
\description{
Analysis of the missing or the zero patterns structure of a data set.
}
\details{
Here, one pattern defines those observations that have the same structure
regarding their missingness or zeros. For all patterns a summary is
calculated.
}
\examples{

data(expenditures)
## set NA's artificial:
expenditures[expenditures < 300] <- NA
## detect the NA structure:
missPatterns(expenditures)

}
\seealso{
\code{\link[VIM]{aggr}}
}
\author{
Matthias Templ. The code is based on a previous version from Andreas
Alfons and Matthias Templ from package VIM
}
\keyword{multivariate}
back to top