# 2-way RELATE for cyclicity

A 2-way RELATE version of the above test where there are no replicates, and the cyclic factor under test is actually nested within a ‘nuisance’ factor whose effect we want to remove, is given by reverting to the full data sheet for the Loch Etive macrofauna samples: **Select>All** and recompute the fourth-root transform and Bray-Curtis similarities, as <ins>B-C all sites</ins>, which now has 16 samples in a circle for each of the three sites E2, E6 and E24. Testing for a match with the circular spatial layout of stations, <u>simultaneously</u> at all three sites, whilst eliminating the inevitable differences in community composition for these three locations using 2-way RELATE, should give a still stronger test of the null hypothesis of no community differences within sites against this specific alternative.

As before, the model matrix is constructed by **Tools>Model Matrix**>(Type•Cyclicity) & (Factor A: <ins>Circle</ins>), run on <ins>B-C all sites</ins>, giving a model distance matrix (rename it <ins>Block diagonal 16-pt circles</ins>) in which only the block diagonals of the stations within sites will be sensible in this <u>nested</u> case (and which is all that RELATE uses) because, for example, station 1 at E2 and station 1 at E6 have nothing in common. On <ins>B-C all sites</ins>, **Analyse>RELATE**>(Secondary data•Resemblance/ model matrix: <ins>Block diagonal 16-pt circles</ins>) & (✓Within levels of factor <ins>Site</ins>) gives an averaged $\rho$ statistic across the three sites of 0.21, still strongly significant – note the tighter spread of the null histogram (c.f. <ins>Graph1</ins> above) because of the simultaneous testing. The lower value than for the E2 test alone suggests weaker effects at E6 and E24, which is seen in separate (1-way) cyclic tests. 

[![ScreenshotPage250a.png](https://learninghub.primer-e.com/uploads/images/gallery/2024-10/scaled-1680-/screenshotpage250a.png)](https://learninghub.primer-e.com/uploads/images/gallery/2024-10/screenshotpage250a.png)

More usually, the cyclic factor under test (often time) is <u>crossed</u> with a second factor (often space), whose effect we want to eliminate for our time test. The 2-way RELATE test structure is the same as for the above nested case however, and a more typical example is now given of a cyclic four-seasons series recorded for several regions, with the added complexity of replication within each of the cells of this 2-way layout. Though the structure is that of a 2-way crossed ANOSIM, this case is not covered by running an ordered ANOSIM test because, of course, the time factor is cyclic and not serial – an appropriate model matrix therefore needs to be created as an input to RELATE.