summary.median Function (GPL)

Syntax

summary.median(<algebra>)

or

summary.median(<binning function>)

or

summary.median(<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.median.

Description

Calculates the median, which is the value above and below which half of the cases fall. The result is equivalent to summary.percentile with an alpha of 0.5. If the function is evaluating graph algebra, the median 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 median salary for each jobcat category
ELEMENT: interval(position(summary.median(jobcat*salary)))

Statistic Functions

See GPL Functions .