Learn R Programming

distr6 (version 1.5.2)

mode: Mode of a Distribution

Description

A numeric search for the mode(s) of a distribution.

Usage

mode(object, which = "all")

Arguments

object

Distribution.

which

which mode of the distribution should be returned, default is all.

Value

The estimated mode as a numeric, either all modes (if multiple) or the ordered mode given in which.

Details

If the distribution has multiple modes, all are returned by default. Otherwise the index of the mode to return can be given or "all" if all should be returned.

If an analytic expression isn't available, returns error. To impute a numerical expression, use the CoreStatistics decorator.

See Also

CoreStatistics and decorate.