Skip to content

CROSSTABS

Contingency tables with counts, percentages and residuals, plus chi-square tests and measures of association.

CROSSTABS /TABLES=rows BY cols [BY layers] [/CELLS=…] [/STATISTICS=…] [/MISSING=TABLE|INCLUDE] [/COUNT=ASIS|CASE|CELL ROUND|TRUNCATE] [/METHOD=EXACT [TIMER(5)] | MC [CIN(99)] [SAMPLES(10000)]].
Kind Procedure (reads data, produces output)
Body main /SUBCOMMAND[=] …
Changes data no
Subcommands /CELLS, /COUNT, /CRITERIA, /FORMAT, /METHOD, /MISSING, /STATISTICS, /TABLES
Menu Analyze ▸ Descriptive Statistics
Slot: Row(s) 1+ variable(s); levels: nominal, ordinal, scale; types: numeric, string
Slot: Column(s) 1+ variable(s); levels: nominal, ordinal, scale; types: numeric, string
Slot: Layer(s) 0+ variable(s); levels: nominal, ordinal, scale; types: numeric, string
  • CELLS: COUNT EXPECTED ROW COLUMN TOTAL RESID SRESID ASRESID BPROP (column proportion tests, Bonferroni)
  • STATISTICS: CHISQ PHI CC LAMBDA UC GAMMA BTAU CTAU D ETA KAPPA RISK MCNEMAR CMH(1)
  • COUNT: ASIS uses weights as given; CASE rounds/truncates each case weight; CELL rounds/truncates each cell count
  • METHOD: EXACT: Fisher-Freeman-Halton exact test for R×C tables (network algorithm; Monte Carlo past TIMER minutes) and exact significance with point probabilities for Pearson and likelihood-ratio chi-square, linear-by-linear association and every measure with a significance (Exact Tests); MC: Monte Carlo estimates with a CIN% interval
CROSSTABS /TABLES=region BY gender /CELLS=COUNT COLUMN /STATISTICS=CHISQ PHI.
CROSSTABS /TABLES=grade BY school /STATISTICS=CHISQ /METHOD=EXACT TIMER(5).
  • Fisher’s exact test is always given for 2×2 tables; /METHOD adds the Fisher-Freeman-Halton test for larger tables.
  • Monte Carlo samples are drawn with the SET SEED seed, which is reported in a footnote.

NPAR TESTS


Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.