summary.mode Function (GPL)

Syntax

summary.mode(<algebra>)

or

summary.mode(<binning function>)

or

summary.mode(<statistic function>)

<algebra>. Graph algebra, such as x*y. Refer to Brief Overview of GPL Algebra for an introduction to graph algebra.

<binning function>. A binning function.

<statistic function>. Another statistic function. The result of the embedded statistic is used to calculate summary.mode.

Description

Calculates the mode, which is the most frequent value. If there is a tie, the smallest value is returned. If the function is evaluating graph algebra, the mode of the analysis variable is returned. For more information about analysis variables, see the discussion in Brief Overview of GPL Algebra .

Examples

Figure 1. Example: Calculating the mode of educationalLevel for each jobcat category
ELEMENT: interval(position(summary.mode(jobcat*educationalLevel)))

Statistic Functions

See GPL Functions .