Skip to content

Sphericity (Mauchly) test inconsistency #478

@plankter

Description

@plankter

After performing repeated measures ANOVA, I discovered that in some cases the output of pingouin.sphericity function differs from the output of R/other apps.

pg.sphericity( data=df, dv="Value", within="Bin", subject="Animal", method="mauchly", )

Here are some basic examples:

  • Correct (similar results):
Image

Correct.csv

  • Incorrect:
Image

Incorrect.csv

After uncommenting Method 1 implementation, results looks similar to R in all cases, see here:

# Method 1. Contrast matrix. Similar to R & Matlab implementation.

Best regards,
Anton

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions