Overview (FREQUENCIES command)
FREQUENCIES produces tables that show frequency counts and percentages of the
values of individual variables. You can also use FREQUENCIES to obtain summary
statistics tables for both categorical and continuous variables. .
Options
Display Format. You can suppress tables
and alter the order of values within tables using the FORMAT subcommand.
Statistical Display. Percentiles
and ntiles are available for numeric variables with the PERCENTILES and NTILES subcommands. The following statistics are available
with the STATISTICS subcommand:
mean, median, mode, standard deviation, variance, skewness, kurtosis,
and sum.
Plots. Histograms can be specified for numeric variables on the HISTOGRAM subcommand. Bar charts can be
specified for numeric or string variables on the BARCHART subcommand.
Input Data. On the GROUPED subcommand, you can indicate whether the input
data are grouped (or collapsed) so that a better estimate can be made
of percentiles.
Basic Specification
The
basic specification is the VARIABLES subcommand and the name of at least one variable. By default, FREQUENCIES produces a Frequency table.
Subcommand Order
Subcommands can be named in any order.
Syntax Rules
- You can
specify multiple
NTILESsubcommands. -
BARCHARTandHISTOGRAMare mutually exclusive. - You can specify numeric variables (with or without decimal values) or string variables.
- Keyword
ALLcan be used onVARIABLESto refer to all user-defined variables in the active dataset.
Operations
- Variables
are tabulated in the order they are mentioned on the
VARIABLESsubcommand. - If a requested ntile or percentile cannot be calculated, a period (.) is displayed.
-
FREQUENCIESdynamically builds the table, setting up one cell for each unique value encountered in the data.
Limitations
- Maximum
1,000 variables total per
FREQUENCIEScommand.