* Before this you need to set up the plan file which must be done interactively.
* This syntax was generated from the menu system.
* You will need to change the name of the plan file.

* Complex Samples Frequencies.
CSTABULATE
 /PLAN FILE = 'C:\Documents and Settings\gillian raab\My Documents\aprojects\peas\web\exemp2\data\ex2.csaplan'
 /TABLES VARIABLES = intuse
 /CELLS  POPSIZE
 /STATISTICS  SE CIN(95) DEFF DEFFSQRT
 /MISSING SCOPE = TABLE CLASSMISSING = EXCLUDE.

* Complex Samples Frequencies.
CSTABULATE
 /PLAN FILE = 'C:\Documents and Settings\gillian raab\My Documents\aprojects\peas\web\exemp2\data\ex2.csaplan'
 /TABLES VARIABLES = intuse
 /CELLS  TABLEPCT
 /STATISTICS  SE CIN(95) DEFF DEFFSQRT
 /MISSING SCOPE = TABLE CLASSMISSING = EXCLUDE.

* Complex Samples Frequencies.
CSTABULATE
 /PLAN FILE = 'C:\Documents and Settings\gillian raab\My Documents\aprojects\peas\web\exemp2\data\ex2.csaplan'
 /TABLES VARIABLES = RC5
 /CELLS  TABLEPCT
 /STATISTICS  SE CIN(95) DEFF DEFFSQRT
 /MISSING SCOPE = TABLE CLASSMISSING = EXCLUDE.

* Complex Samples Crosstabs.
CSTABULATE
 /PLAN FILE = 'C:\Documents and Settings\gillian raab\My Documents\aprojects\peas\web\exemp2\data\ex2.csaplan'
 /TABLES VARIABLES = intuse BY sex
 /CELLS  POPSIZE
 /STATISTICS  SE DEFF DEFFSQRT
 /TEST  ODDSRATIO INDEPENDENCE
 /MISSING SCOPE = TABLE CLASSMISSING = EXCLUDE.

WEIGHT
  BY IND_WT .

CROSSTABS
  /TABLES=intuse  BY sex
  /FORMAT= AVALUE TABLES
  /STATISTIC=CHISQ
  /CELLS= COUNT
  /COUNT ROUND CELL .