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.

K-W Subcommand<br />

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

Operations<br />

Example<br />

NPAR TESTS K-W=varlist BY variable(value1,value2)<br />

NPAR TESTS 1091<br />

K-W (alias KRUSKAL-WALLIS) tests whether k independent samples defined by a grouping<br />

variable are from the same population. The output shows the number of valid cases and the<br />

mean rank of the variable in each group in the Ranks table and the chi-square, degrees of<br />

freedom, and probability in the Test Statistics table.<br />

• The minimum specification is a test variable, the keyword BY, a grouping variable, and a<br />

pair of values in parentheses.<br />

• Every value in the range defined by the pair of values for the grouping variable forms a<br />

group.<br />

• Cases from the k groups are ranked in a single series, and the rank sum for each group is<br />

computed. A test statistic is calculated for each variable specified before BY.<br />

• Kruskal-Wallis H has approximately a chi-square distribution.<br />

• Cases with values other than those in the range specified for the grouping variable are<br />

excluded.<br />

NPAR TESTS K-W=V1 BY V2(0,4).<br />

• This example tests V1 for groups defined by values 0 through 4 of V2.<br />

KENDALL Subcommand<br />

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

NPAR TESTS KENDALL=varlist<br />

KENDALL tests whether k related samples are from the same population. W is a measure of<br />

agreement among judges or raters where each case is one judge’s rating of several items<br />

(variables). The output includes the mean rank for each variable in the Ranks table and the<br />

valid number of cases, Kendall’s W, chi-square, degrees of freedom, and probability in the Test<br />

Statistics table.<br />

The minimum specification is a list of two variables.

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

Saved successfully!

Ooh no, something went wrong!