.BG M
.VE $Header: /usr3/s/current/s/data/.help/RCS/missing,v 1.2 83/12/30 23:09:32 rab Exp $
.FN missing
.TL
?missing: Find Observations Containing NAs
.CS
?missing(x, y, ...)
.PP
.AG x
matrix, typically the x matrix for a regression.
Missing values (NAs) are allowed.
.AG y
vector with `nrow(x)' values.
Missing values (NAs) are allowed.
.RT
logical vector with `nrow(x)' values, where TRUE indicates a
missing value in the corresponding row of `x' or value of
`y'.
.PP
The macro actually accepts any number of matrices or vectors as
arguments, as long as the number of rows of all matrices
are equal and are also equal to the lengths of all vectors.
.EX
i <- ?missing(x,y)
regress(x[!i], y[!i])   # vector x
regress(x[!i,], y[!i])  # matrix x
.KW missing
.KW logic
.KW basic*
.KW attribute
.KW multivariate
.KW regression
.WR
