Compute the empirical cumulative distribution function for promptness
Source:R/fit_data.R
promptness_ecdf.Rd
Compute the empirical cumulative distribution function for promptness
Arguments
- promptness
A vector of promptness values (1 / times)
- adjust_for_times
If
TRUE
(the default), the returnedy
value is such that1 - y = P(1/promptness <= 1/x). If
FALSE, the returned
yvalue is such that
y = P(promptness <= x)`.- eval_unique
If
FALSE
(the default), the ECDF is evaluated at all values inpromptness
. IfTRUE
, the ECDF is evaluated at the unique values inpromptness
.
Value
A data frame with attributes:
x
is the values at which the ECDF was evaluated.y
is the evaluated value of the ECDF.
Examples
p <- promptness_ecdf(promptness = rnorm(100, 3, 1))