Computes the empirical cummulative distribution function for all groups supplied by the formula.
ecdf_fun(data, formula, cuts = NULL)
The data frame used for estimation - ideally structured in a tidy format.
A formula of the type out ~ group
where out
is
the outcome variable and group
is the grouping variable. Note this
variable can include any arbitrary number of groups. Additional variables
can be included with +
to produce separate estimates by the secondary
or tertiary variables of interest (e.g., out ~ group + characteristic1
+ characteristic2
).
Optional vector of cut scores. If supplied, the ECDF will be guaranteed to include these points. Otherwise, there could be gaps in the ECDF at those particular points (used in plotting the cut scores).