Jonckheere-Terpstra test on trend
Perform the Jonckheere-Terpstra test on trend.
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. Bewick V., Cheek L., Ball J. Statistics review 10: further nonparametric methods. Critical Care 2004, 8: 196-199
Assumptions:
Data must be at least ordinal
Groups must be selected in a meaningful order i.e. ordered If you do not choose to enter your own group scores then scores are allocated uniformly (1 ... n) in order of selection of the n groups.
Created by Giuseppe Cardillo
giuseppe.cardillo-edta@poste.it
To cite this file, this would be an appropriate format: Cardillo G. (2008) Jonckheere-Terpstra test: A nonparametric Test for Trend http://www.mathworks.com/matlabcentral/fileexchange/22159
Cite As
Giuseppe Cardillo (2026). Jonckheere-Terpstra test on trend (https://github.com/dnafinder/jttrend), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Versions that use the GitHub default branch cannot be downloaded
| Version | Published | Release Notes | |
|---|---|---|---|
| 2.0.0.0 | inputparser; table implementation; github link |
|
|
| 1.3.0.0 | Changes in description |
||
| 1.2.0.0 | correction in input error handling typo error |
||
| 1.1.0.0 | Changes in help section |
||
| 1.0.0.0 |
