Skip to content

Methods · Hypothesis testing · Trend tests

Terpstra-Magel Test for Ordered Alternatives

The Terpstra-Magel test checks whether the groups' outcomes rise along a pre-specified order. It takes one observation from every group in all possible ways and counts how often the chosen values are already in increasing order. Under no difference this happens for a fraction 1/k! of the combinations; a larger fraction supports the ordered alternative.

테르프스트라-마겔 검정은 미리 정한 순서를 따라 집단의 결과가 커지는지 확인합니다. 각 집단에서 관측치를 하나씩 뽑는 모든 조합을 만들고, 뽑힌 값들이 이미 증가 순서인 경우를 셉니다. 차이가 없으면 조합의 1/k! 만큼만 순서를 따르므로, 그보다 많으면 순서 대립가설을 지지합니다.

Do outcomes increase across ordered groups such as dose levels or stages, judged by whole sets of observations rather than pairs?

용량이나 단계처럼 순서가 있는 집단에서 결과가 순서대로 커지는지, 짝이 아니라 관측치 묶음 전체로 판단할 수 있을까요?

The method returns the count and proportion of ordered k-tuples with the value expected under no difference, a standardised value and an exact or Monte Carlo permutation p-value.

When to use Terpstra-Magel Test for Ordered Alternatives

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

A Terpstra-Magel test found [value] of the k-tuples in the hypothesised order (expected [value]), p = [value].

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 2 reference tests compare the results with direct computations (formulas, enumeration or simulation).

    독립 계산. 직접 계산(식·열거·모의실험) 대조 참조 시험 2건 통과.

Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.

허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.

Run Terpstra-Magel Test for Ordered Alternatives on Quorant

Data you need
a table (CSV or Excel) with an outcome variable and a grouping variable
Price
250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 credits.
Checking
Compared with independent computations
Before you pay
A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.

Method ID Q11236 · Reviewed 2026-10-25