Statistical Methods
Test a Prespecified Order Across Complete Repeated Conditions
Define the research task
Use an ordered-block test when the research hypothesis specifies an increasing sequence across at least three conditions before outcomes are examined. For example, a synthetic assay study might predict increasing response across three ordered settings measured in every block. Do not sort conditions by their observed means: that turns an advance prediction into a data-selected result. An omnibus repeated-condition comparison answers a different question.
Work through the check
- Write the intended order and its scientific rationale before calculation.
- Place independent blocks in rows and conditions in that fixed column order.
- Require complete rows. This teaching tool rejects within-row ties rather than applying an unjustified untied calibration.
- Rank observations within each block and multiply each condition rank sum by its predicted rank.
- Interpret the upper-tail permutation probability only under within-block exchangeability under the null. Preserve the original values for effect-size interpretation.
| Keep fixed | Reason |
|---|---|
| Condition order | Avoid a post hoc directional claim |
| Complete blocks | Preserve paired structure |
| Missingness rule | Avoid changing the analysis silently |
Hypothetical example and reporting
For hypothetical rows [1,2,3] and [2,4,6], both within-row rank vectors are [1,2,3]. L = 2×(1²+2²+3²) = 28. Under independent permutations of three untied conditions in two blocks, there are 6² = 36 equally likely assignments and only one reaches L = 28. The upper-tail probability is 1/36. This small example illustrates the null calculation; it does not establish a clinically meaningful dose response.
Source and verification
Method checked 27 November 2026 against SciPy primary documentation: stats.page_trend_test. Examples are synthetic; this page does not assert human expert approval.