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.

340 CSSELECT<br />

• Output data must be written to an external data file if with-replacement sampling is specified<br />

in the plan file.<br />

<strong>Syntax</strong> Rules<br />

• The PLAN subcommand is required. All other subcommands are optional.<br />

• Only a single instance of each subcommand is allowed.<br />

• An error occurs if an attribute or keyword is specified more than once within a subcommand.<br />

• An error occurs if the same output file is specified for more than one subcommand.<br />

• Equals signs shown in the syntax chart are required.<br />

• Subcommand names and keywords must be spelled in full.<br />

• Empty subcommands are not allowed.<br />

Limitations<br />

Examples<br />

Example<br />

• WEIGHT and SPLIT FILE settings are ignored with a warning by the CSSELECT procedure.<br />

CSSELECT<br />

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

• CSSELECT reads the plan file myfile.csplan.<br />

• CSSELECT draws cases according to the sampling design specified in the plan file.<br />

• By default output data are written to the working data file including final sample weights,<br />

stagewise inclusion probabilities, stagewise cumulative weights, and any other variables<br />

requested in the sample plan.<br />

CSSELECT<br />

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

/CRITERIA SEED=99999<br />

/SAMPLEFILE OUTFILE=’c:\survey\sample.sav’.<br />

• CSSELECT reads the plan file myfile.csplan.<br />

• Sampled cases and weights are written to an external file.<br />

• The seed value for the random number generator is 99999.

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

Saved successfully!

Ooh no, something went wrong!