Diff for "FAQ/JonckheereTrendTest" - CBU statistics Wiki
location: Diff for "FAQ/JonckheereTrendTest"
Differences between revisions 14 and 15
Revision 14 as of 2013-04-11 16:12:56
Size: 2526
Editor: PeterWatson
Comment:
Revision 15 as of 2013-04-11 16:14:16
Size: 2552
Editor: PeterWatson
Comment:
Deletions are marked like this. Additions are marked like this.
Line 9: Line 9:
$$\sum U_{xy} - 1/4$$ $$(N^2^$$ - $$\sum U_{xy} - 1/4$$ $$(\mbox{N}^2^$$ -
Line 15: Line 15:
$$(1/72)(N^2^ (2N-3)- $$ $$(1/72)(\mbox{N}^2^$$
$$
(2\mbox{N}-3)- $$

Jonckheere's Trend Test

(Hacked from here.)

The Jonckheere–Terpstra test

There are situations in which treatments are ordered in some way, for example the increasing dosages of a drug. In these cases a test with the more specific alternative hypothesis that the population medians are ordered in a particular direction may be required. For example, the alternative hypothesis could be as follows: population median1 ≤ population median2 ≤ population median3. This is a one-tail test, and reversing the inequalities gives an analagous test in the opposite tail. Here, the Jonckheere–Terpstra test can be used for k groups, with test statistic TJT calculated as:

$$\sum U_{xy} - 1/4$$ $$(\mbox{N}2$$ - $$ \sum_{j=1}^{k}$$ $$\mbox{n}_j2)$$

divided by the square root of

$$(1/72)(\mbox{N}2$$ $$(2\mbox{N}-3)- $$ $$\sum_{j=1}^{k}$$ $$\mbox{n}_j2$$ $$(2\mbox{n}_j-3))$$

Where Uxy is the number of observations in group y that are greater than each observation in group x and $$\mbox{n}_j$$ is the size of group j. This is compared with a standard Normal distribution.

This test will be illustrated using the data in Table 1 with the alternative hypothesis that time spent by patients in the three ICUs increases in the order cardiothoracic (ICU 1), medical (ICU 2) and neurosurgical (ICU 3).

U12 compares the observations in ICU 1 with ICU 2. It is calculated as follows. The first value in sample 1 is 7; in sample 2 there are three higher values and a tied value, giving 7 the score of 3.5. The second value in sample 1 is 1; in sample 2 there are 5 higher values giving 1 the score of 5. U12 is given by the total scores for each value in sample 1: 3.5 + 5 + 5 + 4 + 2.5 + 3 = 23. In the same way U13 is calculated as 6 + 6 + 6 + 6 + 4.5 + 6 = 34.5 and U23 as 6 + 6 + 2 + 4.5 + 1 = 19.5. Comparisons are made between all combinations of ordered pairs of groups. For the data in Table 1 the test statistic is calculated as follows:

formula to be inserted

Comparing this with a standard Normal distribution gives a P value of 0.005, indicating that the increase in length of stay with ICU is significant, in the order cardiothoracic, medical and neurosurgical.

Page's L test is a nonparametric trend test for repeated measures data where, for example, we wish to see if cognitive tests form a trend where each person has a score on each test. It is available for use in R but is not in SPSS.

None: FAQ/JonckheereTrendTest (last edited 2014-10-02 10:55:51 by PeterWatson)