raphaelvallat / pingouin

Statistical package in Python based on Pandas
https://pingouin-stats.org/
GNU General Public License v3.0
1.65k stars 140 forks source link

Addition of Aligned Rank Transform (ART) operation #338

Closed jeraldamo closed 1 year ago

jeraldamo commented 1 year ago

I have been using Pingouin in my research for a bit now. In a recent study, we ran a 3 factor experiment. For the non-parametric variables, common analysis techniques are insufficient (e.g. Friedman can not handle more than 2 factors, well it cannot explore interaction effects for more than 2 factors). The technique that we ended up using is the Aligned Rank Transform (ART) [1, 2] to run a standard multi-factor ANOVA, using the R package "ART" [3].

Is this something the maintainers would like to see added to Pingouin? If so, I would be more than happy to flush out a plan together and contribute the code.

[1] Higgins, J. J., Blair, R. C. and Tashtoush, S. (1990). The aligned rank transform procedure. Proceedings of the Conference on Applied Statistics in Agriculture. Manhattan, Kansas: Kansas State University, pp. 185-195.

[2] Wobbrock, Jacob O., et al. "The aligned rank transform for nonparametric factorial analyses using only anova procedures." Proceedings of the SIGCHI conference on human factors in computing systems. 2011.

[3] https://rdrr.io/cran/ART/man/aligned.rank.transform.html

raphaelvallat commented 1 year ago

Hi @jeraldamo,

Thanks for the suggestion! I wasn't familiar with ART but I do think that it could be a good addition to Pingouin. However, my time is very limited at the moment and I will not be able to take an active role in this work (beyond reviewing PRs).

Thanks, Raphael