region.confi.percent.count Function (GPL)

Syntax

region.confi.percent.count(<algebra>, <function>, <base function>)

or

region.confi.percent.count(<statistic function>, <function>, <base function>)

<algebra>. Graph algebra, such as x or x*y. In the second case, the confidence interval for the percentage is calculated for cases with non-missing y-variable values. Refer to Brief Overview of GPL Algebra for an introduction to graph algebra.

<function>. One or more valid functions. These are optional. If no alpha function is specified, 0.95 is used for the alpha.

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

<statistic function>. Another statistic function. The result of the embedded statistic is used to calculate region.confi.percent.count.

Description

Calculates the confidence interval around the percentage within each group compared to the total number of cases. The function creates two values. When using the interval, area, or edge graphic elements, this function results in one graphic element showing the range of the confidence interval. All other graphic elements result in two separate elements, one showing the confidence interval below the percentage value and one showing the confidence interval above the percentage value.

Examples

Figure 1. Example: Creating error bars
ELEMENT: interval(position(region.confi.percent.count(jobcat)), shape(shape.ibeam))

Statistic Functions

See GPL Functions .