Skip to content

Complex Samples Frequencies and Crosstabs

Estimates how many population members fall in each category, the corresponding percentages, and (for two-way tables) whether two categorical variables are associated, using the sampling design.

  • To report the estimated prevalence of a characteristic (for example smoking) from weighted survey data.
  • To compare percentages across groups in a crosstabulation.
  • To test independence in survey data, where the ordinary chi-square test is too liberal.
  • An analysis plan (CSPLAN ANALYSIS) describes the weight, strata and clusters.
  • Categorical variables (at most 200 categories each).
  • The Rao-Scott test needs a reasonable number of first-stage units and non-empty cells.
  • Population Size: estimated number of population members in each cell, with its standard error.
  • % of Total / % within row / column: percentages are ratio estimates, so their standard errors allow for the estimated denominator.
  • Tests of Independence: the uncorrected Pearson chi-square ignores the design; use the Rao-Scott adjusted F (second-order correction) and its significance. The first-order Rao-Scott chi-square is shown for comparison.

Smoking prevalence differed by region, Rao-Scott F(1.87, 108.4) = 4.62, p = .014.

Syntax: CSTABULATE /PLAN FILE='survey.csaplan' /TABLES VARIABLES=region BY smoker /CELLS POPSIZE ROWPCT /STATISTICS SE CIN(95) /TEST INDEPENDENCE.


This page comes from OrcStat’s built-in help (the same text as in the app’s Help panel). To suggest a change, open an issue.