Learn R Programming

gk (version 0.6.0)

orderstats: Order statistics

Description

Sample a subset of order statistics of the Uniform(0,1) distribution

Usage

orderstats(n, orderstats)

Value

A vector of order statistics equal in length to orderstats

Arguments

n

Total number of independent draws

orderstats

Which order statistics to generate, in increasing order

Details

Uniform order statistics are generated by the exponential spacings method (see Ripley for example).

References

Brian Ripley `Stochastic Simulation' Wiley (1987)

Examples

Run this code
orderstats(100, c(25,50,75))

Run the code above in your browser using DataLab