Generating statistics

Concept Information

STATISTICS command

You can generate detailed statistics on numeric and datetime fields in a table. Statistics provide an overview of a table, and can highlight abnormalities in the data, which can guide your subsequent analysis.

When you generate statistics, in addition to the standard output options, Analytics automatically creates a number of system variables that contain the output results. For more information, see Variables created by Analytics commands.

The results of generating statistics are described in the table below.

Note

All the statistics are generated for numeric fields. Only a subset of the statistics are generated for datetime fields.

Statistic name Results
Range Numeric field:
  • The difference between the highest and lowest values
Datetime field:
  • The number of days between the oldest and most recent date
Positive
  • The number of positive values
  • The total of all positive values (not meaningful for datetime fields)
  • The average positive value
Negative
  • The number of negative values
  • The total of all negative values
  • The average negative value
Zeros The number of zero values
Totals
  • The total number of positive, negative, and zero values
  • The total of all positive, negative, and zero values
  • The average of all positive, negative, and zero values
Abs Value The total of all values while disregarding the sign of the numbers
Std Dev (optional) The standard deviation from the mean value
Median (optional) The median value
  • Odd-numbered sets of values: the middle value
  • Even-numbered sets of values: the average of the two values at the middle
Q25 (optional) The first quartile value (lower quartile value)
  • The result is an interpolated value based on an Analytics algorithm
  • Produces the same result as the QUARTILE and QUARTILE.INC functions in Microsoft Excel
Q75 (optional) The third quartile value (upper quartile value)
  • The result is an interpolated value based on an Analytics algorithm
  • Produces the same result as the QUARTILE and QUARTILE.INC functions in Microsoft Excel
Mode (optional) The most frequently occurring value
  • Displays “N/A” if no value occurs more than once
  • In the event of a tie, displays the lowest value
Highest The five highest values
Lowest The five lowest values

Tip

You can use the # of High/Low setting on the More tab in the Statistics dialog box to specify the number of high and low values that are included in the results.

Steps

You can generate descriptive statistics on numeric and datetime fields in a table.