Description Usage Arguments Details Value Author(s) References Examples
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.any.na
returns TRUE
if any component of the argument vector has missing
values.
1 2 | ## S3 method for class 'rv'
is.na(x)
|
x |
an rv object |
Internally, is.na.rv
applies the function is.na
to each
simulation of each component of the argument vector.
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).
Jouni Kerman jouni@kerman.com
Kerman, J. and Gelman, A. (2007). Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Statistics and Computing 17:3, 235-244.
See also vignette("rv")
.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.