rv {rv} | R Documentation |
Creates or tests for objects of type ``rv
".
rv(length = 0) as.rv(x) is.rv(x) is.random(x)
length |
desired length. |
x |
object to be coerced or tested. |
rv
creates a random vector vector of the specified length. The elements of the vector are all equal to 0.
is.rv
returns TRUE if its argument is a rv object, FALSE otherwise.
as.rv
attempts to coerce its argument to the random vector (rv) type.
is.random
returns TRUE
or FALSE
for each component of the argument vector, depending on whether the component is
a random variable object.
rv objects are internally lists with the class attribute set to ``rv
".
Jouni Kerman kerman@stat.columbia.edu http://www.stat.columbia.edu/~kerman
Kerman, Jouni and Gelman, Andrew. Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Technical report, Columbia University, New York. http://www.stat.columbia.edu/~kerman/Research/postsim.pdf
For a short version of the paper, type doc("rv")
.
x <- rv(1)