Description Usage Arguments Details Value Examples
Calculate an empirical cumulative distribution function based on a sample x
and optionally a vector w
of weights.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
x |
Numeric vector containing the sample. Alternatively, if |
w |
Optional. Numeric vector containing the weights of each value in |
... |
Further parameters. |
The weights vector w
can contain the counts of each distinct value in x
, this is the most natural use case.
In general the weights are describing the jumps of the final ecdf. Normalization is handled internally.
If x
contains duplicates, corresponding values in w
will be summed up.
Only positive weights are allowed. Elements in x
with non-positive weights will be ignored.
A function of class rkt_ecdf
.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.