is.na.rv returns the distribution (random variable)
of the indicator function of missing data.
rv.all.na returns TRUE if all components
of the argument vector are completely missing.
rv.all.na returns TRUE if any component
of the argument vector has missing values.
Usage
## S3 method for class 'rv':
is.na(x)
rv.all.na(x)
rv.any.na(x)
Arguments
x
an rv object
Value
is.na.rv returns a ``Bernoulli" random vector
of the same length and dimension as those of x.
rv.all.na and rv.any.na return TRUE or FALSE (single value).
Details
Internally, is.na.rv applies the function is.na
to each simulation of each component of the argument vector.
References
Kerman, Jouni and Gelman, Andrew. Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Technical report, Columbia University, New York.