summary.percent.sum Function (GPL)

Syntax

summary.percent.sum(<algebra>, <base function>)

or

summary.percent.sum(<binning function>, <base function>)

or

summary.percent.sum(<statistic function>, <base function>)

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

<base function>. A function that specifies the percentage base for summary.percent.sum. This is optional. The default is base.all().

<binning function>. A binning function.

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

Description

Calculates the percentage within each subgroup based on a summed variable compared to the sum across all groups. summary.percent is an alias for this function. To obtain percentages of counts, use the summary.percent.count function. See the topic summary.percent.count Function (GPL) for more information.

Examples

Figure 1. Example: Calculating percentages of a summed variable
ELEMENT: interval(position(summary.percent.sum(jobcat*salary)))

Statistic Functions

See GPL Functions .