make_ecdf_df | R Documentation |
Function for creating an empirical CDF from a numerical sample
make_ecdf_df(x, boundedness = c("none", "left", "right", "both"))
make_ecdf_matrix(m)
x |
numeric sample (vector) |
boundedness |
should the sample be bounded by the minimum("left"), maximum("right") or both values ("both"). Default is "none". |
m |
numeric matrix |
If boundedness is "none" the ties method in the rank()
function is "average" (meaning that two equal samples can get the same probability).
Otherwise the ties method is "first", meaning that all probabilities will be unique and the first sample will get the lower probability.
data frame with 2 columns p - vector of empirical probabilities, q - vector of sorted original sample values
make_ecdf_matrix()
returns a matrix with added probability columns denoted with postfix "_p"
make_ecdf_df(runif(10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.