STATISTICS subcommand (FREQUENCIES command)

STATISTICS controls the display of statistics. By default, cases with missing values are excluded from the calculation of statistics.

  • The minimum specification is the keyword STATISTICS, which generates the mean, standard deviation, minimum, and maximum (these statistics are also produced by keyword DEFAULT).
  • This subcommand is ignored for string variables.

The following table displays the possible attributes that you can add in the command syntax for STATISTICS to include the statistics that measure the amount of variation or spread in the data, statistics that describe the location of the distribution and the newness and Kurtosis.

Attribute Function
MEAN Displays the mean
SEMEAN Displays the standard error of the mean
MEDIAN Displays the median.

This is ignored when AFREQ or DFREQ are specified on the FORMAT subcommand.

MODE Displays the mode. If there is more than one mode, only the first mode is displayed.
STDDEV Displays the standard deviation.
VARIANCE Displays the variance.
SKEWNESS Displays the skewness.
SESKEW Displays the standard error of the skewness statistic.
KURTOSIS Displays the kurtosis.
SEKURT Displays the standard error of the kurtosis statistic.
RANGE Displays the range.
MINIMUM Displays the smallest value of the variable.
MAXIMUM Displays the largest value of the variable.
CV Displays the coefficient of variation.
SUM Displays the sum.
DEFAULT Displays the mean, standard deviation, minimum, and maximum.
ALL Displays the all available statistics.
NONE Displays no statistic.
Examples
  • Specifying a particular statistic.

    In the following command, STATISTICS requests the mode of AGE.

    FREQUENCIES VARIABLES = AGE 
    /STATISTICS=MODE.
  • Including the default statistics.
    In the following command, STATISTICS requests the default statistics (mean, standard deviation, minimum, and maximum) and the mode of AGE.
    FREQUENCIES VARIABLES = AGE 
    /STATISTICS=DEF MODE.