sort.rv {rv}R Documentation

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

Arguments

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

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.

Value

An rv object of the same length as x.

Author(s)

Jouni Kerman kerman@stat.columbia.edu http://www.stat.columbia.edu/~kerman

References

Kerman, Jouni and Gelman, Andrew. Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Technical report, Columbia University, New York.

See Also

sort

Examples

  #

[Package rv version 0.949 Index]