STATISTICS subcommand (CROSSTABS command)
STATISTICS
requests measures of association and related statistics. By default, CROSSTABS
does not display any additional
statistics.
-
STATISTICS
without keywords displays the chi-square test. - If
STATISTICS
is specified with keywords,CROSSTABS
calculates only the requested statistics. - In integer mode, values that are not included in the specified range are not used in the calculation of the statistics, even if these values exist in the data.
- If user-missing values are included with
MISSING
, cases with user-missing values are included in the calculation of statistics as well as in the tables.
CHISQ. Display the
Chi-Square Test table. Chi-square statistics include Pearson
chi-square, likelihood-ratio chi-square, and Mantel-Haenszel chi-square
(linear-by-linear association). Mantel-Haenszel is valid only if both
variables are numeric. Fisher’s exact test and Yates’
corrected chi-square are computed for all 2 × 2 tables. This
is the default if STATISTICS
is specified with no keywords.
PHI. Display phi and Cramér’s V in the Symmetric Measures table.
CC. Display contingency coefficient in the Symmetric Measures table.
LAMBDA. Display lambda (symmetric and asymmetric) and Goodman and Kruskal’s tau in the Directional Measures table.
UC. Display uncertainty coefficient (symmetric and asymmetric) in the Directional Measures table.
BTAU. Display Kendall’s tau-b in the Symmetric Measures table.
CTAU. Display Kendall’s tau-c in the Symmetric Measures table.
GAMMA. Display gamma in the Symmetric Measures table or Zero-Order and Partial Gammas table. The Zero-Order and Partial Gammas table is produced only for tables with more than two variable dimensions.
D. Display Somers’ d (symmetric and asymmetric) in the Directional Measures table.
ETA. Display eta in the Directional Measures table. Available for numeric data only.
CORR. Display Pearson’s r and Spearman’s correlation coefficient in the Symmetric Measures table. This is available for numeric data only.
KAPPA. Display kappa coefficient 1 in the Symmetric Measures table. Kappa is based on a square table in which row and column values represent the same scale. Any cell that has observed values for one variable but not the other is assigned a count of 0. Kappa is not computed if the data storage type (string or numeric) is not the same for the two variables. For string variable, both variables must have the same defined length.
RISK. Display relative risk 2 in the Risk Estimate table. Relative risk can be calculated only for 2 x 2 tables.
MCNEMAR. Display a test of symmetry for square tables. The McNemar test is displayed for 2 x 2 tables, and the McNemar-Bowker test, for larger tables.
CMH(1*). Conditional independence and homogeneity tests. Cochran’s and the Mantel-Haenszel statistics are computed for the test for conditional independence. The Breslow-Day and Tarone’s statistics are computed for the test for homogeneity. For each test, the chi-squared statistic with its degrees of freedom and asymptotic p value are computed. Mantel-Haenszel relative risk (common odds ratio) estimate. The Mantel-Haenszel relative risk (common odds ratio) estimate, the natural log of the estimate, the standard error of the natural log of the estimate, the asymptotic p value, and the asymptotic confidence intervals for common odds ratio and for the natural log of the common odds ratio are computed. The user can specify the null hypothesis for the common odds ratio in parentheses after the keyword. The passive default is 1. (The parameter value must be positive.)
ALL. All statistics available.
NONE. No summary
statistics. This is the default if STATISTICS
is omitted.