quantile.rv: Distribution of a Quantile of a Random Vector

Description Usage Arguments Value Note Author(s) References Examples

View source: R/quantile_rv.R

Description

quantile.rv returns the distribution of the quantile of a random vector (as a random variable).

Usage

1
2
## S3 method for class 'rv'
quantile(x, ...)

Arguments

x

an object

...

further arguments passed to or from other methods

Value

A random vector (rv object) with components giving the distribution of the desired quantiles.

Note

quantile.rv does not return the simulated quantiles of the quantiles of the argument x. This is done by rvquantile.

Author(s)

Jouni Kerman jouni@kerman.com

References

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").

Examples

1
2
  x <- rvnorm(30)
  quantile(x)

jsta/rv documentation built on Feb. 12, 2022, 5:13 p.m.