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

# S3 method for rv
sort(x, ...)

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

Author

Jouni Kerman jouni@kerman.com