View source: R/rvquantile_rvmedian.R View source: R/rvquantile.R
rvquantile | R Documentation |
Computes componentwise quantiles of random vectors or arrays.
rvquantile(x, ...) ## S3 method for class 'rv' rvquantile( x, probs = c(0.025, 0.1, 0.25, 0.5, 0.75, 0.9, 0.975), ignoreInf = FALSE, ... )
x |
an object |
... |
further arguments passed to |
probs |
numeric vector of probabilities with values in |
ignoreInf |
ignore infinite values |
rvquantile
applies the quantile
function to each column of
sims(x)
.
rvmedian
applies median
to the each column of sims(x)
.
A numeric vector of quantiles.
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")
.
x <- rvnorm(3) rvquantile(x) rvquantile(x, probs=c(0, 0.01, 0.99, 1)) rvmedian(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.