Mode of a Statistical List
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.
data1 ≔ 6,12,12,12,10,5
data2 ≔ 6,Weight⁡12,3,5,missing
Download Help Document