# [Eeglablist] LIMO between subjects ANOVA with repeated factors

Dr Cyril, Pernet wamcyril at gmail.com
Wed Sep 1 00:24:21 PDT 2021

```Hi Chrissy

> Good afternoon,
> I have a between subjects (3 grp) design with repeated factors (4 of them). I'd like to calculate custom contrasts, but I'm not sure what order the contrasts would go in. From the design matrix (and common sense), I can see that I would need 12 values in any contrast (13 if you include the constant).
> I'm finding the documentation for the between subjects ANOVA with repeated factors a little sparse.

Actually, you would not - at the 1st level (per subject) you should have
5 columns, 4 conditions + the constant; then at the group level, you
would have the groups and the conditions (no constant - because LIMO
MEEG relies on a Hotelling T^2)

the documentation is
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_LIMO-2DEEG-2DToolbox_limo-5Ftools_wiki_Repeated-2DMeasure-2DANOVA&d=DwICaQ&c=-35OiAkTchMrZOngvJPOeA&r=kB5f6DjXkuOQpM1bq5OFA9kKiQyNm1p6x6e36h3EglE&m=22hR-t_O6oo7QP1pG1vYiEH3qinnf0OEG0VCWpAkrck&s=F_3qfxbTjn4XI3YODd2P1M0RByPE2rIobXQqG8lbA58&e=
-- I would love feedback to improve it though!

> Would these contrasts be in the following order (1) cond 1, grp 1, (2) cond 2, grp 1, (3) cond 3, grp 1, (4) cond 4, grp 1, (5) cond 1, grp 2 .... etc
> OR (1) cond 1, grp 1, (2) cond 1, grp 2, (3) cond 1, grp 3, (4) cond 2, grp 1, (5) cond 2, grp 2

those are therefore not needed - the repeated measure at the group level
will compute for you the repeated factor effect, group effect and
interaction. Of course post-hoc contrasts will be possible too here
based on the design - happy to help this that if needed.

best wishes

Cyril

--

Dr Cyril Pernet, PhD, OHBM fellow, SSI fellow
Neurobiology Research Unit,
Building 8057, Blegdamsvej 9
Copenhagen University Hospital, Rigshospitalet
DK-2100 Copenhagen, Denmark

wamcyril at gmail.com
https://urldefense.proofpoint.com/v2/url?u=https-3A__cpernet.github.io_&d=DwICaQ&c=-35OiAkTchMrZOngvJPOeA&r=kB5f6DjXkuOQpM1bq5OFA9kKiQyNm1p6x6e36h3EglE&m=22hR-t_O6oo7QP1pG1vYiEH3qinnf0OEG0VCWpAkrck&s=n65ik6eY0sTsd-kR-QEPo-Ca1R3R5D3k3qgMXzLo3gs&e=
https://urldefense.proofpoint.com/v2/url?u=https-3A__orcid.org_0000-2D0003-2D4010-2D4632&d=DwICaQ&c=-35OiAkTchMrZOngvJPOeA&r=kB5f6DjXkuOQpM1bq5OFA9kKiQyNm1p6x6e36h3EglE&m=22hR-t_O6oo7QP1pG1vYiEH3qinnf0OEG0VCWpAkrck&s=QSS4hK-zNGJeI484xDOmH9MuagPItSMpvHc5LuOzYik&e=

```