Ordered, incomplete and replicated blocks
Real blocks are messy. Page tests a planned order; Durbin and Skillings–Mack handle gaps; Mack–Skillings and Gore handle replicates. CodeSplash can pick from the layout.
What runs in CodeSplash
- STAT036Page L test Runs in CodeSplash
- STAT037Durbin test for incomplete blocks Runs in CodeSplash
- STAT038Skillings–Mack test Runs in CodeSplash
- STAT039Mack–Skillings test Runs in CodeSplash
- STAT040Gore test Runs in CodeSplash
- Friedman test (repeated measures, ranks) Verified in Python and R
You will be able to
- Use Page's test for a planned order across conditions
- Match a block layout to Durbin, Skillings–Mack, Mack–Skillings or Gore
- Explain why listwise deletion wastes blocked data
Which layout do you have?
ReadFriedman needs every subject to see every condition exactly once. Most other layouts have a test of their own:
| Your layout | Test |
|---|---|
| Complete, with a planned order | Page's L |
| Every subject sees the same number of conditions, in a balanced way | Durbin |
| Any pattern of gaps | Skillings–Mack |
| Equal replicates in every cell | Mack–Skillings |
| Unequal replicates, at least one per cell | Gore |
A planned order
ReadTwelve subjects at four doses. Friedman ignores dose order: p = .002. Page's L sums each condition's rank times its planned position:
Here L = 337, z = 3.70, exact p < .001. As with Jonckheere–Terpstra, the order must come from the plan, not from the results.
Balanced gaps
PredictPredict first
Seven judges each score three of seven varieties, and every variety gets the same number of scores. Which test fits?
Reveal
Durbin, for a balanced incomplete block design. Here it gives (6) = 4.29, p = .638: no sign of a difference among the varieties.
Unplanned gaps
ReadDropouts and missing readings rarely respect a design. Deleting every subject with a gap wastes data. Skillings–Mack keeps every subject with at least two conditions.
Ten subjects, four conditions, some gaps: (3) = 6.88, p = .076, using 9 of the 10 subjects.
Replicates
ReadWhen cells hold several measurements, ranks can use them. Mack–Skillings handles equal replicates: with 3 per cell, (2) = 11.99, p = .002.
Gore allows unequal replicates: (2) = 8.61, p = .014. It relies on large-sample theory, so a permutation p-value is a good check with small data.
Let the layout choose
In the appIn the Friedman dialog, Test defaults to Automatic (from the design), and the card names what it used. A messy version of the base-running data, with gaps, chose Skillings–Mack, giving p = .003.
For Page's test, set Alternative to Increasing in the order below and drag Expected order into place. The Code tab shows each test in Python and R.
Check your layout
ReflectSketch your own design as a table with subjects as rows and conditions as columns. Mark each cell with how many values it holds. Which row of the table at the start of this lesson does it match, and would you have noticed without drawing it?
Check your understanding
CheckpointCheck yourself
A complete design measures subjects at four increasing time points, and your plan predicted a steady rise. Which test fits?
Show the answer
Answer: a
Page is the ordered alternative for complete blocks. Durbin and Gore are for other layouts.
Check yourself
Each of 30 patients should have 4 visits, but some missed one at random. What is the best rank-based analysis?
Show the answer
Answer: b
Skillings–Mack uses the partial data. Mack–Skillings is for replicates within cells, not gaps.
Check yourself
Each batch × method cell has 2 to 5 replicate yields. Which test handles this?
Show the answer
Answer: c
Gore allows unequal numbers of replicates. Mack–Skillings needs the same number in every cell.
Recap
Recap- Match the test to the layout: planned order, balanced gaps, any gaps, equal or unequal replicates.
- Don't delete partial blocks when a test can use them.
- The Automatic option reads the layout and tells you what it chose.
Concepts in this lesson