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

View source: R/quantile_rv.R

quantile.rvR Documentation

Distribution of a Quantile of a Random Vector

Description

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

Usage

## 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


  x <- rvnorm(30)
  quantile(x)


rv documentation built on March 18, 2022, 5:55 p.m.