powered by
npnorm
Function sort.npnorm sorts an object of class npnorm in the order of the obsersed values.
sort.npnorm
# S3 method for npnorm sort(x, decreasing = FALSE, ...)
an object of class npnorm.
logical, in the decreasing (default) or increasing order.
arguments passed to function order.
order
mix = disc(pt=c(0,4), pr=c(0.3,0.7)) # a discrete distribution x = rnpnorm(20, mix, sd=1) sort(x)
Run the code above in your browser using DataLab