Cochran-Armitage Trend Test
Coming soonCategorical
This test is implemented and is currently going through StatMinds’ production verification: every statistic is independently checked against a trusted reference (scipy / R), locked with regression tests, and the screen is exercised across assumption-met/violated and significant/non-significant scenarios before it opens up.
See what’s live nowTests a MONOTONE TREND in event probabilities across ≥ 3 ordered predictor levels (binary outcome × ordered predictor).
Computes a trend score Z by regressing the binary outcome on scored predictor levels (default linearly-spaced 1, 2, …, k). Higher power than the unordered chi-square test when the true relationship IS monotone. Reports the trend Z, p, and the per-level event proportions with 95% CIs. The canonical dose-response test in clinical pharmacology, toxicology (NTP carcinogenicity assays), and any study with an a-priori ordered exposure.
Worked example
Does the response rate rise steadily with dose?
Response (yes/no) was recorded across four ordered dose groups; the Cochran-Armitage test looks specifically for a linear trend in the proportions.
Response rose with dose (3% → 57%), Cochran-Armitage trend Z = 4.45, p < .001.
A Cochran-Armitage test showed a significant increasing trend in response rate with dose, Z = 4.45, p < .001.
Try it yourself: Load this ready-made sample and follow the run above.
When to use it
- Dose-response with binary outcomeA vaccine trial compares seroconversion (yes/no) across 4 dose levels (0, 10, 50, 100 μg).
- Carcinogenicity / toxicology dose-responseNTP carcinogenicity study: 50 rats per dose at 0, 50, 100, 200 ppm.
When NOT to — use instead
- Continuous outcomeCochran-Armitage is for binary outcomes. → Jonckheere-Terpstra (ordered trend)
- Unordered categorical predictorWithout ordering, the trend statistic is meaningless. → Chi-Square Test of Independence
- Need to control for covariatesCochran-Armitage is unadjusted. → Binomial Logistic Regression \u2014 odds ratios + ROC AUC + classification
- Non-monotone dose-response (inverted-U)Trend test has no power against non-monotone patterns. → Binomial Logistic Regression \u2014 odds ratios + ROC AUC + classification
Hypotheses
Parameter tested: linear trend in event probability across ordered levels
Assumptions (and what to do if they fail)
Check: Report min per-level n and whether any level has 0 events or all events.
If violated: Sparse per-level cells reduce power; all-zero or all-one levels do not contribute to the trend.
Check: Check the largest single level.
If violated: Skewed level distribution reduces sensitivity to trend in the sparse levels.
Ready to run a Cochran-Armitage Trend Test on your own data?
Guided setup, automatic assumption checks, effect sizes, figures and an APA write-up.
Run this test →