Functions (XGRAPH command)

Functions must be enclosed in square brackets.

Value function:

The VALUE function yields the value of the specified y-axis variable for each case. It always produces one data element for each case.

Aggregation functions:

Two groups of aggregation functions are available: count functions and summary functions.

Count functions:

COUNT. Frequency of cases in each category.

PCT. Frequency of cases in each category expressed as a percentage of the whole.

CUPCT. Cumulative percentage sorted by category value.

CUFREQ. Cumulative frequency sorted by category value.

Summary functions:

MINIMUM. Minimum value of the variable.

MAXIMUM. Maximum value of the variable.

VALIDN. Number of cases for which the variable has a nonmissing value.

SUM. Sum of the values of the variable.

CUSUM. Sum of the summary variable accumulated across values of the category variable.

MEAN. Mean.

STDDEV. Standard deviation.

VARIANCE. Variance.

MEDIAN. Median.

GMEDIAN. Group median.

MODE. Mode.

PTILE(x). Xth percentile value of the variable. X must be greater than 0 and less than 100.

PLT(x). Percentage of cases for which the value of the variable is less than x.

PGT(x). Percentage of cases for which the value of the variable is greater than x.

NLT(x). Number of cases for which the value of the variable is less than x.

NGT(x). Number of cases for which the value of the variable is greater than x.

PIN(x1,x2) . Percentage of cases for which the value of the variable is greater than or equal to x1 and less than or equal to x2. x1 cannot exceed x2.

NIN(x1,x2) . Number of cases for which the value of the variable is greater than or equal to x1 and less than or equal to x2. x1 cannot exceed x2.