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.

Examples<br />

TWOSTEP CLUSTER<br />

/CONTINUOUS VARIABLES = INCOME LIFESPAN<br />

/PLOT VARCHART.<br />

TWOSTEP CLUSTER 1599<br />

TWOSTEP CLUSTER will print a bar chart for each cluster. Each bar chart will have two bars,<br />

one for INCOME and one for LIFESPAN. For each cluster, the bar length for INCOME is the t<br />

statistic for testing the equality of the within-cluster mean for INCOME to the overall mean of<br />

INCOME. The bar length for LIFESPAN is defined similarly.<br />

TWOSTEP CLUSTER<br />

/CONTINUOUS VARIABLES = INCOME LIFESPAN<br />

/PLOT VARCHART COMPARE BYVARIABLE.<br />

TWOSTEP CLUSTER will print two bar charts, one for INCOME and one for LIFESPAN. Each<br />

bar will correspond to the variable’s importance in a cluster. The bar lengths are the t statistics<br />

mentioned above.<br />

TWOSTEP CLUSTER<br />

/CONTINUOUS VARIABLES = INCOME LIFESPAN<br />

/PLOT VARCHART NONPARAMETRIC CONFIDENCE 98.<br />

TWOSTEP CLUSTER will print one bar chart per cluster, as in the first example, although the<br />

variable importance will now be 1 minus the p value of the test of equality of means. Under<br />

the null hypothesis of equality of means, each importance value is uniformly distributed on<br />

(0,1). The CONFIDENCE keyword tells TWOSTEP CLUSTER to print a reference line at 0.98.<br />

TWOSTEP CLUSTER<br />

/CONTINUOUS VARIABLES = VAR1 VAR2 VAR3...VARn<br />

/PLOT VARCHART NONPARAMETRIC CONDFIDENCE 98 OMIT.<br />

TWOSTEP CLUSTER will print bar charts as in the previous example, but any variable whose<br />

importance is less than 0.98 will not be shown.<br />

TWOSTEP CLUSTER<br />

/CATEGORICAL VARIABLES = VAR1 VAR2...VARn<br />

/PLOT VARCHART NONPARAMETRIC CONFIDENCE 80.<br />

TWOSTEP CLUSTER will print a bar chart for each cluster. The variable importance will be<br />

1 minus the p value of the Pearson chi-square statistic for testing the equality of cluster probabilities<br />

and overall probabilities. For example, the importance of VAR1 will be 1 minus the<br />

p value for the test of equality of the within-cluster distribution of VAR1 to the overall distribution<br />

of VAR1. A vertical line will be drawn with value 0.8.<br />

PRINT Subcommand<br />

The PRINT subcommand causes TWOSTEP CLUSTER to print tables related to each cluster.<br />

IC Information criterion. Prints the chosen information criterion (AIC or BIC)<br />

for different numbers of clusters. If this keyword is specified when the AUTO<br />

keyword is not used with the NUMCLUSTERS subcommand, TWOSTEP<br />

CLUSTER will skip this keyword and issue a warning. TWOSTEP CLUSTER<br />

will ignore this keyword if AUTO 1 is specified in the NUMCLUSTERS<br />

subcommand.

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

Saved successfully!

Ooh no, something went wrong!