27.03.2013 Views

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

372 CSTABULATE<br />

Example<br />

• CSTABULATE will display the A-by-B crosstabulation, with each cell giving the population<br />

size estimate for the cell expressed as a percentage of the population size estimate for<br />

the table.<br />

• In addition, a 95% confidence interval will be displayed within each cell.<br />

CSTABULATE<br />

/PLAN FILE = ‘c:\survey\myfile.xml’<br />

/JOINTPROB FILE = ‘c:\survey\myfile.sav’<br />

/TABLES VARIABLES = a b.<br />

• The JPROBFILE subcommand specifies that joint inclusion probabilities are given in the<br />

file ‘c:\survey\myfile.sav’. Joint inclusion probabilities are required for<br />

UNEQUAL_WOR estimation.<br />

• CSTABULATE will display one-way frequency tables for variables A and B. The population<br />

size estimate and its standard error will be shown for each category of each variable.<br />

PLAN Subcommand<br />

The PLAN subcommand specifies the name of an XML file containing analysis design specifications.<br />

This file is written by the CSPLAN procedure.<br />

The PLAN subcommand is required.<br />

FILE Specifies the name of an external file.<br />

JOINTPROB Subcommand<br />

The JOINTPROB subcommand is used to specify the file containing the first stage joint inclusion<br />

probabilities for UNEQUAL_WOR estimation. The CSSELECT procedure writes this<br />

file in the same location and with the same name (but different extension) as the plan file.<br />

When UNEQUAL_WOR estimation is specified, the CSTABULATE procedure will use the<br />

default location and name of the file unless the JOINTPROB subcommand is used to override<br />

them.<br />

FILE Specifies the name of the joint inclusion probabilities file.<br />

TABLES Subcommand<br />

The TABLES subcommand specifies the tabulation variables.<br />

• If a single variable list is specified, then a one-way frequency table is displayed for each<br />

variable in the list.<br />

• If the variable list is followed by the BY keyword and a variable, then two-way crosstabulations<br />

are displayed for each pair of variables. Pairs of variables are defined by crossing<br />

the variable list to the left of the BY keyword with the variable to the right. Each variable

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!