Compute the empirical cumulative distribution function for promptness
Source:R/fit_data.R
promptness_ecdf.RdCompute the empirical cumulative distribution function for promptness
Arguments
- promptness
A vector of promptness values (1 / times)
- adjust_for_times
If
TRUE(the default), the returnedyvalue is such that1 - y = P(1/promptness <= 1/x). IfFALSE, the returnedyvalue is such thaty = 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:
xis the values at which the ECDF was evaluated.yis the evaluated value of the ECDF.
Examples
p <- promptness_ecdf(promptness = rnorm(100, 3, 1))