summary.proportion.sum Function (GPL)

Syntax

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

or

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

or

summary.proportion.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.proportion.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.proportion.sum.

Description

Calculates the proportion within each subgroup based on a summed variable compared to the sum across all groups. summary.proportion is an alias for this function. summary.proportion.sum is similar to summary.percent.sum except it reports a value between 0 and 1 instead of 0 and 100.

To obtain proportions of counts, use the summary.proportion.count function. See the topic summary.proportion.count Function (GPL) for more information.

Examples

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

Statistic Functions

See GPL Functions .