Skip to content

Unbalanced Mixed ANOVA #23

@CorentinWicht

Description

@CorentinWicht

Dear Dr Mensen,

first of all many thanks for the amazing toolbox you programmed.

I was wondering whether there was any possibility to run a 2x2 mixed ANOVA with unbalanced sample sizes (while the within-subject factor will have same number of observations)?

Hence,
Group 1, condition 1 = 31
Group 1, condition 2 = 31
Group 2, condition 1 = 33
Group 2, condition 2 = 33

I have been trying to write such function for a long time but couldn't get to the end, the unbalanced samples seem to be problematic.

I read that a way around would be to use the harmonic mean of the group sizes (Unweighted means analysis, i.e. if assumption that the groups are equally represented in the population of interest), what do you think? (In my case the harmonic mean would be 2/(1/31 + 1/33) = 31.97).

See example for the difference between weighted-unweighted means analysis:
ANOVA1_Weight-Unweight.docx

Best wishes,

Corentin Wicht
SNSF Doc.CH PhD student
Neurology Unit, Medicine Section
Faculty of Science and Medicine,
University of Fribourg
Ch. du Musée 5, CH-1700 Fribourg
+41 (0)26 300 85 36
corentin.wicht@unifr.ch
https://www3.unifr.ch/med/de/research/groups/spierer/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions