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.

Example<br />

Overview<br />

Options<br />

CSPLAN SAMPLE<br />

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

/DESIGN STRATA=region CLUSTER=school<br />

/METHOD TYPE=PPS_WOR<br />

/MOS VARIABLE=mysizevar<br />

/SIZE VALUE=100.<br />

CSPLAN ANALYSIS<br />

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

/PLANVARS ANALYSISWEIGHT=sampleweight<br />

/DESIGN CLUSTER=district<br />

/ESTIMATOR TYPE=UNEQUAL_WOR<br />

/DESIGN CLUSTER=school<br />

/ESTIMATOR TYPE=EQUAL_WOR<br />

/INCLPROB VARIABLE=sprob.<br />

CSPLAN VIEW<br />

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

CSPLAN 349<br />

The CSPLAN procedure creates a complex sample design or analysis specification that is used<br />

by companion procedures in the Complex Samples Option. The CSSELECT procedure uses<br />

specifications from a plan file when selecting cases from the active file. Analysis procedures<br />

in the Complex Samples Option such as CSDESCRIPTIVES require a plan file in order to<br />

produce summary statistics for a complex sample. You can also use CSPLAN to view sample<br />

or analysis specifications within an existing plan file.<br />

The CSPLAN design specification is used only by procedures in the Complex Samples<br />

Option.<br />

Design Specification. CSPLAN writes a sample or analysis design to a file. A sample design<br />

can be used to extract sampling units from the active file. An analysis design is used to<br />

analyze a complex sample. When a sample design is created the procedure automatically<br />

saves an appropriate analysis design to the plan file. Thus, a plan file created for designing a<br />

sample can be used for both sample selection and analysis.<br />

Both sample and analysis designs can specify stratification, or independent sampling within<br />

nonoverlapping groups, as well as cluster sampling, in which groups of sampling units are<br />

selected. A single or multistage design can be specified with a maximum of three stages.<br />

CSPLAN does not actually execute the plan (that is, it does not extract the sample or analyze<br />

data). To sample cases, use a sample design created by CSPLAN as input to the CSSELECT<br />

procedure. To analyze sample data, use an analysis design created by CSPLAN as input to<br />

Complex Samples procedures such as CSDESCRIPTIVES.

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

Saved successfully!

Ooh no, something went wrong!