Stratified Permutation Test
The method compares two or more groups while holding a stratifying variable fixed. Group labels are permuted only within strata (centres, batches, age bands), so differences between strata cannot create an apparent group effect. The test statistic is the sum of raw values or within-stratum ranks in each group, standardised with its exact conditional mean and variance; the p-value comes from the within-stratum permutation distribution, enumerated exactly when small, and from the matching normal or chi-square approximation.
층을 나누는 변수를 고정한 채 둘 이상의 집단을 비교합니다. 집단 이름은 층(기관, 배치, 연령대) 안에서만 바꾸므로 층 사이의 차이가 집단 효과처럼 보이지 않습니다. 검정통계량은 각 집단의 원값 또는 층 안 순위의 합을 정확한 조건부 평균과 분산으로 표준화한 것이며, p 값은 층 안 순열분포(작으면 정확히 열거)와 그에 맞는 정규 또는 카이제곱 근사로 구합니다.
Do the groups differ after allowing for a stratifying factor such as study centre, without assuming normal data?
연구 기관 같은 층 변수를 고려한 뒤에도 정규성 가정 없이 집단 간 차이가 있는지 알고 싶습니다.
The method reports the standardised statistic (Z for two groups, chi-square for more), the permutation and asymptotic p-values, the number of strata and, for two groups, a stratum-weighted mean difference, with group means in each stratum.
When to use Stratified Permutation Test
- Observations come from strata that differ in level, and groups are compared within strata.
- Group sizes differ across strata.
- You want a permutation p-value that respects the stratification.
When to use something else
- Each block has exactly one observation per treatment: use Permutation Test for Randomised Complete Block Designs
- There is no stratifying variable: use Permutation Test for Two Groups or Permutation ANOVA
- The outcome is a binary event and strata are tables: use Cochran-Mantel-Haenszel Test
Assumptions and requirements
- Observations exchangeable within each stratum under the null hypothesis
- Strata contain at least two groups (others are set aside)
What the analysis reports
- Standardised statistic and degrees of freedom
- Exact or Monte Carlo permutation p-value and asymptotic p-value
- Stratum-weighted mean difference (two groups)
- Group means by stratum
How to report it
A stratified permutation test (rank scores, [value] strata) gave Z = [value], permutation p = [value]; the stratum-weighted mean difference was [value].
Related methods
- Permutation Test for Two Groups
- Permutation ANOVA
- Cochran-Mantel-Haenszel Test
- Kruskal-Wallis Test
- Permutation Test for Randomised Complete Block Designs
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with SciPy and direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-10.
독립 계산. SciPy·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과(허용오차 1e-10).
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 Stratified Permutation Test on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable, a treatment indicator and a grouping variable
- Price
- 400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 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.