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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

70 2 Presenting <strong>and</strong> Summarising the Data<br />

n<br />

∑ =<br />

2<br />

6 d<br />

i 1 i<br />

rs<br />

= 1−<br />

, 2.21<br />

2<br />

N(<br />

N −1)<br />

When tied ranks occur − i.e., two or more cases receive the same rank on the<br />

same variable −, each of those cases is assigned the average of the ranks that would<br />

have been assigned had no ties occurred. When the proportion of tied ranks is<br />

small, formula 2.21 can still be used. Otherwise, the following correction factor is<br />

computed:<br />

T =<br />

g<br />

∑<br />

i=<br />

1<br />

3<br />

i<br />

( t − t ) ,<br />

i<br />

where g is the number of groupings of different tied ranks <strong>and</strong> ti is the number of<br />

tied ranks in the ith grouping. The Spearman’s rank correlation with correction for<br />

tied ranks is now written as:<br />

r<br />

s<br />

= 1−<br />

( N<br />

( N<br />

3<br />

3<br />

− N)<br />

− 6<br />

− N)<br />

2<br />

− ( T<br />

n<br />

∑ i=<br />

1<br />

x<br />

d<br />

2<br />

i<br />

y<br />

− ( T<br />

3<br />

x<br />

+ T<br />

+ T )( N − N)<br />

+ T T<br />

y<br />

) / 2<br />

x<br />

y<br />

, 2.22<br />

where Tx <strong>and</strong> Ty are the correction factors for the variables X <strong>and</strong> Y, respectively.<br />

Table 2.10. Contingency table obtained with <strong>SPSS</strong> of the NC, PRTGC variables<br />

(cork stopper dataset).<br />

PRTGC Total<br />

0 1 2 3<br />

NC 0 Count 25 9 4 1 39<br />

% of Total 16.7% 6.0% 2.7% .7% 26.0%<br />

1 Count 12 13 10 1 36<br />

% of Total 8.0% 8.7% 6.7% .7% 24.0%<br />

2 Count 1 13 15 9 38<br />

% of Total .7% 8.7% 10.0% 6.0% 25.3%<br />

3 Count 1 1 9 26 37<br />

% of Total .7% .7% 6.0% 17.3% 24.7%<br />

Total Count 39 36 38 37 150<br />

% of Total 26.0% 24.0% 25.3% 24.7% 100.0%<br />

Example 2.8<br />

Q: Compute the rank correlation for the variables N <strong>and</strong> PRTG of the Cork<br />

PRTG into 4 categories, according to their value falling into the 1 st , 2 nd , 3 rd or 4 th<br />

Stopper’ dataset, using two new variables, NC <strong>and</strong> PRTGC, which rank N <strong>and</strong><br />

quartile intervals.

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

Saved successfully!

Ooh no, something went wrong!