describe(deprecated)/mode - Help

stats[describe, mode]

Mode of a Statistical List

 Calling Sequence stats[describe, mode](data) describe[mode](data)

Parameters

 data - statistical list

Description

 • Important: The stats package has been deprecated. Use the superseding package Statistics instead.
 • The function mode of the subpackage stats[describe, ...] computes the  mode of the given data.
 • The mode is defined to be the observation with the highest frequency. If the mode is a class, then the mode is interpolated.
 • If there is more than one observation with the modal frequency, they are all reported.
 • The mode is one measure of central tendency. For more information related to central tendency, refer to the help for the mean. An example of the use of the mode would be the following: the manager of a particular supermarket noticed that the most common number of apples that consumers buy at the same time is 12. Based on this, the store now offers packages of a dozen apples, already counted.
 • The interpolation formula breaks down if three contiguous classes have the modal frequency.
 • The data must be numeric.
 • The command with(stats[describe],mode) allows the use of the abbreviated form of this command.

Examples

Important: The stats package has been deprecated. Use the superseding package Statistics instead.

 > $\mathrm{with}\left(\mathrm{stats}\right):$
 > $\mathrm{data1}≔\left[6,12,12,12,10,5\right]$
 ${\mathrm{data1}}{≔}\left[{6}{,}{12}{,}{12}{,}{12}{,}{10}{,}{5}\right]$ (1)
 > $\mathrm{describe}[\mathrm{mode}]\left(\mathrm{data1}\right)$
 ${12}$ (2)
 > $\mathrm{data2}≔\left[6,\mathrm{Weight}\left(12,3\right),5,\mathrm{missing}\right]$
 ${\mathrm{data2}}{≔}\left[{6}{,}{\mathrm{Weight}}{}\left({12}{,}{3}\right){,}{5}{,}{\mathrm{missing}}\right]$ (3)
 > $\mathrm{describe}[\mathrm{mode}]\left(\mathrm{data2}\right)$
 ${12}$ (4)