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.

Example<br />

NPAR TESTS M-W=V1 BY V2(1,2).<br />

NPAR TESTS 1093<br />

• This example tests V1 based on the two groups defined by values 1 and 2 of V2.<br />

MCNEMAR Subcommand<br />

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

Operations<br />

Example<br />

NPAR TESTS MCNEMAR=varlist [WITH varlist [(PAIRED)]]<br />

MCNEMAR tests whether combinations of values between two dichotomous variables are<br />

equally likely. The output includes a Crosstabulation table for each pair and a Test Statistics<br />

table for all pairs showing the number of valid cases, chi-square, and probability for each pair.<br />

• The minimum specification is a list of two variables. Variables must be dichotomous and<br />

must have the same two values.<br />

• If keyword WITH is not specified, each variable is paired with every other variable in the<br />

list.<br />

• If WITH is specified, each variable before WITH is paired with each variable after WITH. If<br />

PAIRED is also specified, the first variable before WITH is paired with the first variable<br />

after WITH, the second variable before WITH with the second variable after WITH, and so<br />

on. PAIRED cannot be specified without WITH.<br />

• With PAIRED, the number of variables specified before and after WITH must be the same.<br />

PAIRED must be specified in parentheses after the second variable list.<br />

• In computing the test statistics, only combinations for which the values for the two variables<br />

are different are considered.<br />

• If fewer than 25 cases change values from the first variable to the second variable, the<br />

binomial distribution is used to compute the probability.<br />

NPAR TESTS MCNEMAR=V1 V2 V3.<br />

• This example performs the MCNEMAR test on variable pairs V1 and V2, V1 and V3, and V2<br />

and V3.

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

Saved successfully!

Ooh no, something went wrong!