ecdf_bin | R Documentation |
Evaluates the empirical cumulative distribution function
(ecdf) of a sample data
at the evaluation points sorted_x
.
This is done through binary search.
ecdf_bin(data, sorted_x, data_sorted = FALSE, efic = TRUE,
divide_n = TRUE)
data |
a vector or column matrix containing the sample. |
sorted_x |
a vector or column matrix with the evaluation points sorted increasingly. |
data_sorted |
is |
efic |
use the more efficient version of the ecdf evaluation? Set to
|
divide_n |
if |
The ecdf evaluated at sorted_x
.
Be careful on avoiding the next bad usages of the function, which will produce spurious results:
sorted_x
is not sorted increasingly.
data
is not sorted increasingly when
data_sorted = TRUE
-
Original code from Douglas Bates' https://github.com/dmbates/ecdfExample. Minor adaptations by Eduardo García-Portugués.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.