Description Usage Arguments Details Author(s) References Examples
Coerces random vector objects into double-valued ones.
1 2 |
x |
an rv object |
... |
other arguments |
as.double
coerces an rv object into double-valued one. In effect,
the function as.double
is applied to all simulations.
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 | x <- as.logical(rvbern(prob=0.5))
print(x)
print(as.double(x))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.