Aligned Rank Test Across Strata (Hodges-Lehmann Alignment)
Within each stratum the stratum's location (mean, median or Hodges-Lehmann estimate) is subtracted from its observations, so strata no longer differ in level. The aligned values are ranked together and the groups' rank sums are compared with their distribution under random relabelling within strata.
각 층 안에서 층의 위치(평균, 중앙값 또는 호지스-레만 추정값)를 관측값에서 빼서 층 사이의 수준 차이를 없앱니다. 이렇게 정렬한 값을 한꺼번에 순위로 바꾸고, 집단별 순위합을 층 안에서 무작위로 집단을 바꿨을 때의 분포와 비교합니다.
Do my treatment groups differ when observations come in strata or blocks with very different levels?
관측값이 수준이 크게 다른 층이나 블록으로 나뉘어 있을 때, 처리 집단들이 서로 다릅니까?
The output gives a chi-square on k - 1 df (and z for two groups) with its p-value, and each group's rank sum, expected rank sum and mean aligned rank. Using aligned ranks lets information from comparisons across strata contribute, which raises power when strata are small.
When to use Aligned Rank Test Across Strata (Hodges-Lehmann Alignment)
- Data come in blocks or centres that shift the response level.
- Strata are small, so ranking within strata alone loses power.
When to use something else
- Each block has exactly one observation per treatment and you want a classic test: use Friedman Test
- There are no strata: use Kruskal-Wallis Test
- You want an exact permutation test within strata: use Stratified Permutation Test
Assumptions and requirements
- Exchangeable observations within strata under the null hypothesis
- Strata differ only in location
What the analysis reports
- Chi-square (or z) and p
- Rank sums, expectations and standard deviations per group
How to report it
An aligned rank test with [value] alignment across [value] strata gave chi2([value]) = [value], p = [value].
Related methods
How this method is validated
이 방법의 검증 근거
- Independent computation. 2 reference tests compare the results with SciPy and direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-9.
독립 계산. SciPy·직접 계산(식·열거·모의실험) 대조 참조 시험 2건 통과(허용오차 1e-9).
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 Aligned Rank Test Across Strata (Hodges-Lehmann Alignment) on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable, a treatment indicator 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.