Learn R Programming

rv (version 1.1.0)

sort.rv: Distribution of Order Statistics of a Random Vector

Description

sort.rv computes the distribution of the order statistics of a random vector.

Usage

## S3 method for class 'rv':
sort(x, \dots)

Arguments

x
a random vector
...
further arguments passed to sort.rv

Value

  • An rv object of the same length as x.

Details

The result is the distribution of the order statistic of the given vector x: that is, the sort function is applied to each row of the matrix of simulations of x (sims(x)) and returned then in random vector form. See sort for further details of the function sort.

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

See Also

sort

Examples

Run this code
#

Run the code above in your browser using DataLab