sort.nppois {nspmix} | R Documentation |
Sorting of an Object of Class nppois
Description
Function sort.nppois
sorts an object of class
nppois
in the order of the obsersed values.
Usage
## S3 method for class 'nppois'
sort(x, decreasing = FALSE, ...)
Arguments
x |
an object of class |
decreasing |
logical, in the decreasing (default) or increasing order. |
... |
arguments passed to function |
Examples
mix = disc(pt=c(0,4), pr=c(0.3,0.7)) # a discrete distribution
x = rnppois(20, mix)
sort(x)
[Package nspmix version 2.0-0 Index]