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.

SAVE Subcommand<br />

DISCRIMINANT 477<br />

SAVE allows you to save casewise information as new variables in the working data file.<br />

• SAVE applies only to the current analysis block. To save casewise results from more than<br />

one analysis, specify a SAVE subcommand in each analysis block.<br />

• You can specify a variable name for CLASS and rootnames for SCORES and PROBS to<br />

obtain descriptive names for the new variables.<br />

• If you do not specify a variable name for CLASS, the program forms variable names using<br />

the formula DSC_m, where m increments to distinguish group membership variables<br />

saved on different SAVE subcommands for different analysis blocks.<br />

• If you do not specify a rootname for SCORES or PROBS, the program forms new variable<br />

names using the formula DSCn_m, where m increments to create unique rootnames and n<br />

increments to create unique variable names. For example, the first set of default names<br />

assigned to discriminant scores or probabilities are DSC1_1, DSC2_1, DSC3_1, and so on.<br />

The next set of default names assigned will be DSC1_2, DSC2_2, DSC3_2, and so on,<br />

regardless of whether discriminant scores or probabilities are being saved or whether they<br />

are saved by the same SAVE subcommand.<br />

• The keywords CLASS, SCORES, and PROBS can be used in any order, but the new variables<br />

are always added to the end of the working data file in the following order: first the predicted<br />

group, then the discriminant scores, and finally probabilities of group membership.<br />

• Appropriate variable labels are automatically generated. The labels describe whether the<br />

variables contain predictor group membership, discriminant scores, or probabilities, and<br />

for which analysis they are generated.<br />

• The CLASS variable will use the value labels (if any) from the grouping variable specified<br />

for the analysis.<br />

• When SAVE is specified with any keyword, DISCRIMINANT displays a classification<br />

processing summary table and a prior probabilities for groups table.<br />

• You cannot use the SAVE subcommand if you are replacing the working data file with<br />

matrix materials (see “Matrix Output” on p. 482).<br />

CLASS [(varname)] Predicted group membership.<br />

SCORES [(rootname)] Discriminant scores. One score is saved for each discriminant function<br />

derived. If a rootname is specified, DISCRIMINANT will append a<br />

sequential number to the name to form new variable names for the discriminant<br />

scores.<br />

PROBS [(rootname)] For each case, the probabilities of membership in each group. As<br />

many variables are added to each case as there are groups. If a rootname<br />

is specified, DISCRIMINANT will append a sequential number to<br />

the name to form new variable names.

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

Saved successfully!

Ooh no, something went wrong!