psi.eqf.Rd
Computes the empirical quantile function for a data vector and returns it as a step function object.
psi.eqf(x, val.right = NULL)
x | a numeric data vector representing a random sample from a continuous distribution |
---|---|
val.right | value of eqf outside [0,1], see details |
The eqf for a sample of size n is a step function with value equal to the i-th order statistic in the interval ((i-1)/n,i/n] for i=1,...,n.
Other definitions of sample quantiles, see quantile
,
are not implemented by this function.
The eqf as a stepfun
object.
The result will be incorrect if x
contains ties but this
should not happen for continuous distributions.