summary.percentTrue Function (GPL)

Syntax

summary.percentTrue(<algebra>)

or

summary.percentTrue(<binning function>)

or

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

Description

Calculate the percentage of cases within each subgroup that evaluate to a true value compared to the total number of cases. If the function is evaluating graph algebra, the analysis variable is typically the Boolean result of expression evaluated by the eval function. For more information about analysis variables, see the discussion in Brief Overview of GPL Algebra .

Examples

Figure 1. Example: Plotting percentage greater than a value
TRANS: salGreaterThan = eval(salary>50000)
ELEMENT: interval(position(summary.percentTrue(jobcat*salGreaterThan)))

Statistic Functions

See GPL Functions .