CSTABULATE
Design-based frequency tables and crosstabulations with Rao-Scott adjusted tests of independence.
Syntax
Section titled “Syntax”CSTABULATE /PLAN FILE='file.csaplan' /TABLES VARIABLES=varlist [BY varlist] [/CELLS POPSIZE ROWPCT COLPCT TABLEPCT] [/STATISTICS SE CV DEFF DEFFSQRT CIN(95) COUNT] [/TEST INDEPENDENCE] [/SUBPOP TABLE=var [BY var]] [/MISSING SCOPE=TABLE|LISTWISE CLASSMISSING=EXCLUDE|INCLUDE].Synopsis
Section titled “Synopsis”| Kind | Procedure (reads data, produces output) |
| Body | main /SUBCOMMAND[=] … |
| Changes data | no |
| Subcommands | /CELLS, /MISSING, /PLAN, /PRINT, /STATISTICS, /SUBPOP, /TABLES, /TEST |
| Menu | Analyze ▸ Complex Samples |
| Slot: Rows | 1+ variable(s); levels: nominal, ordinal, scale; types: numeric, string |
| Slot: Columns | 0+ variable(s); levels: nominal, ordinal, scale; types: numeric, string |
Specifications
Section titled “Specifications”- TABLES: one-way tables, or row BY column crosstabs
- CELLS: population sizes and percentages (default: POPSIZE with TABLEPCT, or ROWPCT for crosstabs)
- TEST: INDEPENDENCE: Pearson, first-order Rao-Scott chi-square and the second-order Rao-Scott F
Examples
Section titled “Examples”CSTABULATE /PLAN FILE='survey.csaplan' /TABLES VARIABLES=region BY smoker /CELLS POPSIZE ROWPCT /TEST INDEPENDENCE.- The analysis plan (CSPLAN ANALYSIS or CSSELECT /ANALYSISPLAN) supplies the weight, strata, clusters and finite population correction. Variances are Taylor-series linearization estimates; tests and intervals use the design degrees of freedom (first-stage units − strata). WEIGHT BY is ignored.
- Variables may have at most 200 categories.
Related
Section titled “Related”Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.