Skip to contents

Compute the empirical cumulative distribution function for promptness

Usage

promptness_ecdf(promptness, adjust_for_times = TRUE, eval_unique = FALSE)

Arguments

promptness

A vector of promptness values (1 / times)

adjust_for_times

If TRUE (the default), the returned y value is such that 1 - y = P(1/promptness <= 1/x). If FALSE, the returned yvalue is such thaty = P(promptness <= x)`.

eval_unique

If FALSE (the default), the ECDF is evaluated at all values in promptness. If TRUE, the ECDF is evaluated at the unique values in promptness.

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))