Skip to content

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.

Advanced ~11 min9 steps

What runs in CodeSplash

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

Read first

01

Which layout do you have?

Read

Friedman needs every subject to see every condition exactly once. Most other layouts have a test of their own:

Your layoutTest
Complete, with a planned orderPage's L
Every subject sees the same number of conditions, in a balanced wayDurbin
Any pattern of gapsSkillings–Mack
Equal replicates in every cellMack–Skillings
Unequal replicates, at least one per cellGore
02

A planned order

Read

Twelve subjects at four doses. Friedman ignores dose order: p = .002. Page's L sums each condition's rank times its planned position:

L=∑j=1kj RjL = \sum_{j=1}^{k} j\, R_j

Here L = 337, z = 3.70, exact p < .001. As with Jonckheere–Terpstra, the order must come from the plan, not from the results.

03

Balanced gaps

Predict

Predict first

Seven judges each score three of seven varieties, and every variety gets the same number of scores. Which test fits?

DurbinSkillings–MackMack–Skillings
Reveal

Durbin, for a balanced incomplete block design. Here it gives χ2\chi^2(6) = 4.29, p = .638: no sign of a difference among the varieties.

04

Unplanned gaps

Read

Dropouts 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: χ2\chi^2(3) = 6.88, p = .076, using 9 of the 10 subjects.

05

Replicates

Read

When cells hold several measurements, ranks can use them. Mack–Skillings handles equal replicates: with 3 per cell, χ2\chi^2(2) = 11.99, p = .002.

Gore allows unequal replicates: χ2\chi^2(2) = 8.61, p = .014. It relies on large-sample theory, so a permutation p-value is a good check with small data.

06

Let the layout choose

In the app

In 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.

07

Check your layout

Reflect

Sketch 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?

08

Check your understanding

Checkpoint

Check 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.

09

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