Skip to content

Complex Samples Analysis Plan

Records how a sample was drawn, so that every Complex Samples procedure computes standard errors that reflect the design rather than assuming simple random sampling.

  • Before any Complex Samples analysis of survey data that used strata, clusters or unequal selection probabilities.
  • When a data provider supplies a sampling weight together with stratum and cluster (PSU) identifiers.
  • To add a finite population correction when a large share of each stratum was sampled.
  • The weight is the inverse of each case’s selection probability (possibly adjusted for non-response).
  • Clusters are numbered within strata as sampled; a stratum needs at least two first-stage units for its variance.
  • The with-replacement (WR) estimator is the usual, slightly conservative choice; EQUAL_WOR needs population sizes or inclusion probabilities for each stage.
  • Analysis Plan: one row per stage with its strata, clusters, estimator and finite population correction.
  • The plan is saved to the named .csaplan file and used through /PLAN FILE= by CSDESCRIPTIVES, CSTABULATE, CSGLM, CSLOGISTIC, CSORDINAL and CSCOXREG.
  • Degrees of freedom for tests are the number of first-stage units minus the number of strata.

Analyses accounted for the complex sample design (stratification by region, clustering of students in schools and sampling weights) using Taylor-series linearization with 58 design degrees of freedom.

Syntax: CSPLAN ANALYSIS /PLAN FILE='survey.csaplan' /PLANVARS ANALYSISWEIGHT=wt /DESIGN STRATA=region CLUSTER=school /ESTIMATOR TYPE=WR.


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.