powered by
Sample a subset of order statistics of the Uniform(0,1) distribution
orderstats(n, orderstats)
A vector of order statistics equal in length to orderstats
orderstats
Total number of independent draws
Which order statistics to generate, in increasing order
Uniform order statistics are generated by the exponential spacings method (see Ripley for example).
Brian Ripley `Stochastic Simulation' Wiley (1987)
orderstats(100, c(25,50,75))
Run the code above in your browser using DataLab