01.03.2013 Views

Applied Statistics Using SPSS, STATISTICA, MATLAB and R

Applied Statistics Using SPSS, STATISTICA, MATLAB and R

Applied Statistics Using SPSS, STATISTICA, MATLAB and R

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

5.3 Inference on Two Populations 205<br />

A: Tables 5.19 <strong>and</strong> 5.20 show the results with identical conclusions (<strong>and</strong> p values!)<br />

to those presented in Example 4.9.<br />

Note that at a 1% level, we do not reject the null hypothesis for the ASP<br />

variable. This example constitutes a good illustration of the power-efficiency of the<br />

Mann-Whitney test when compared with its parametric counterpart, the t test.<br />

Table 5.20. Mann-Whitney test results for variables ASP <strong>and</strong> PHE (Example 5.15)<br />

with grouping variable TYPE, obtained with <strong>SPSS</strong>.<br />

ASP PHE<br />

Mann-Whitney U 371.5 314<br />

Wilcoxon W 1074.5 1017<br />

Z −2.314 −3.039<br />

Asymp. Sig. (2-tailed) 0.021 0.002<br />

5.3.2 Tests for Two Paired Samples<br />

Comm<strong>and</strong>s 5.9. <strong>SPSS</strong>, <strong>STATISTICA</strong>, <strong>MATLAB</strong> <strong>and</strong> R comm<strong>and</strong>s used to<br />

perform non-parametric tests on two paired samples.<br />

<strong>STATISTICA</strong><br />

<strong>SPSS</strong><br />

<strong>MATLAB</strong><br />

R<br />

<strong>Statistics</strong>; Nonparametrics; Comparing two<br />

dependent samples (variables)<br />

Analyze; Nonparametric Tests; 2 Related<br />

Samples<br />

[p,h,stats]=signrank(x,y,alpha)<br />

[p,h,stats]=signtest(x,y,alpha)<br />

mcnemar.test(x) | mcnemar.test(x,y)<br />

wilcox.test(x,y,paired=TRUE)<br />

5.3.2.1 The McNemar Change Test<br />

The McNemar change test is particularly suitable to “before <strong>and</strong> after”<br />

experiments, in which each case can be in either of two categories or responses <strong>and</strong><br />

is used as its own control. The test addresses the issue of deciding whether or not<br />

the change of response is due to hazard. Let the responses be denoted by the + <strong>and</strong><br />

– signs <strong>and</strong> a change denoted by an arrow, →. The test is formalised as:

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

Saved successfully!

Ooh no, something went wrong!