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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

210 <strong>Syntax</strong> <strong>Reference</strong><br />

• VARIABLES defines variables. The keyword TO refers to the order of the variables in the<br />

working data file.<br />

• The ANALYSIS subcommand defines variables used in the analysis. It is specified that<br />

TEST4 is the dependent variable, with optimal scaling level numerical and that the<br />

variables TEST1, TEST2, TEST3, TEST5, TEST7, TEST8, STATUS01, and STATUS02 are<br />

the independent variables to be used in the analysis. (The keyword TO refers to the order<br />

of the variables in the VARIABLES subcommand.) The optimal scaling level for TEST1,<br />

TEST2, and TEST3 is spline ordinal, for TEST5 and TEST7 spline nominal, for TEST8<br />

ordinal, and for STATUS01 and STATUS02 nominal. The splines for TEST1 and TEST2<br />

have degree 1 and three interior knots, the splines for TEST5 and TEST7 have degree 2<br />

and two interior knots (default because unspecified).<br />

• DISCRETIZATION specifies that TEST5 and TEST7, which are fractional-value variables,<br />

are discretized: TEST5 by recoding into seven categories with a normal distribution<br />

(default because unspecified) and TEST7 by “multiplying.” TEST1, which is a categorical<br />

variable, is recoded into five categories with a close-to-uniform distribution.<br />

• Because there are nominal variables, a random initial solution is requested by the INITIAL<br />

subcommand.<br />

• MAXITER specifies the maximum number of iterations to be 100. This is the default, so<br />

this subcommand could be omitted here.<br />

• CRITITER sets the convergence criterion to a value smaller than the default value.<br />

• To include cases with missing values, the MISSING subcommand specifies that for each<br />

variable, missing values are replaced with the most frequent category (the mode).<br />

• PRINT specifies the correlations, the coefficients, the descriptive statistics for all variables,<br />

the ANOVA table, the category quantifications for variables TEST1, TEST2,<br />

TEST3, STATUS01, and STATUS02, and the transformed data list of all cases.<br />

• PLOT is used to request quantification plots for the variables TEST2, TEST5, TEST7, and<br />

TEST4.<br />

• The SAVE subcommand adds the transformed variables to the working data file. The<br />

names of these new variables are TRANS1_1, ..., TRANS9_1.<br />

• The OUTFILE subcommand writes the transformed data to a data file called qdata.sav in<br />

the directory c:\data.<br />

VARIABLES Subcommand<br />

VARIABLES specifies the variables that may be analyzed in the current CATREG procedure.<br />

• The VARIABLES subcommand is required and precedes all other subcommands. The<br />

actual keyword VARIABLES can be omitted. (Note that the equals sign is always optional<br />

in SPSS syntax.)<br />

• The keyword TO on the VARIABLES subcommand refers to the order of variables in the<br />

working data file. (Note that this behavior of TO is different from that in the indvarlist on<br />

the ANALYSIS subcommand.)

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

Saved successfully!

Ooh no, something went wrong!