A step distribution is one where the cdf
and quantile function are step functions.
This includes empirical distributions.
stepdst() facilitates the creation of
such a distribution by specifying the
observations/breakpoints, along with their weights.
stepdst(y, data, weights = 1, ...) is_stepdst(object) is.stepdst(object)
Outcomes to comprise the distribution. Should either evaluate to a vector, or be a name in the specified data.
Data frame, list, or environment
containing the outcome name in
Weights corresponding to the outcomes in
Additional arguments, currently not used.
Object to check
A "stepdst" object, which is also a "dst" object. The cdf is a right-continuous step function, and the quantile function is a left-continuous step function.