summary.count Function (GPL)

Syntax

summary.count(<algebra>)

or

summary.count(<binning function>)

or

summary.count(<statistic function>)

<algebra>. Graph algebra, such as x or x*y. In the second case, the count is calculated for cases with non-missing y-variable values. 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.count.

Description

Calculates the number of cases identified by the algebra or function. If using a function, a typical one would be a binning function. summary.count subsequently calculates the number of cases in each bin.

Examples

Figure 1. Example: Specifying a bar chart of counts
ELEMENT: interval(position(summary.count(jobcat)))
Figure 2. Example: Counting non-missing cases for a continuous variable
ELEMENT: interval(position(summary.count(jobcat*salary)))
Figure 3. Example: Specifying a histogram
ELEMENT: interval(position(summary.count(bin.rect(salary))))

Statistic Functions

See GPL Functions .