ewcdf: Compute the weighted empirical cumulative distribution
Description
Compute the weighted empirical cumulative distribution
Usage
ewcdf(x, weights = rep(1/length(x), length(x)))
Value
a vector containing:
- the weighted empirical cumulative distribution function
- the cumulated weights associated to the ordered values of the random variable.
Arguments
- x
the sample
- weights
the associated weights if any. Default is uniform.