jasp-stats / jasp-issues

This repository is solely meant for reporting of bugs, feature requests and other issues in JASP.
59 stars 29 forks source link

Requirement of additional HoV tests #2629

Open ZeAarZe opened 8 months ago

ZeAarZe commented 8 months ago

Description

1) O' Brien's test to check homogenitiy of variance for smaller sample size (also robust against violation of normality) and F test for variance as well as Bartlett's for checking homogeinity of variance (specifically for noramally distributed data))

Purpose

To get better outputs from homogeneity of variance

Use-case

No response

Is your feature request related to a problem?

Absence of aforementioned tests

Is your feature request related to a JASP module?

ANOVA, T-Tests

Describe the solution you would like

Addition of the tests

Describe alternatives that you have considered

No response

Additional context

The references I followed are given below

1) An introduction to Statistical Concepts by Debbie L. Hahs-Vaughn and Richard G. Lomax

2) Statistical tests for homogeneity of variance for clinical trials and recommendations (doi.org/10.1016/j.conctc.2023.101119)

3) Erjavec, N. (2011). Tests for Homogeneity of Variance. In: Lovric, M. (eds) International Encyclopedia of Statistical Science. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-04898-2_590

4) Ralph G. O’Brien (1979) A General ANOVA Method for Robust Tests of Additive Models for Variances, Journal of the American Statistical Association, 74:368, 877-880, DOI: 10.1080/01621459.1979.10481047, the original paper by O’Brien

5) Ramsey, P. H. (1994). Testing variances in psychological and educational research. Journal of Educational Statistics, 19, 23-42. doi:10.3102/10769986019001023

6) Wang Y, Rodríguez de Gil P, Chen YH, Kromrey JD, Kim ES, Pham T, Nguyen D, Romano JL. Comparing the Performance of Approaches for Testing the Homogeneity of Variance Assumption in One-Factor ANOVA Models. Educ Psychol Meas. 2017 Apr;77(2):305-329. doi: 10.1177/0013164416645162. Epub 2016 Apr 27. PMID: 29795915; PMCID: PMC5965542.

TarandeepKang commented 8 months ago

Hi Team,

I agree that these would be useful, Bartlett's test is already implemented in EFA in the factor analysis module so hopefully, that should be a very straightforward implementation? It is available in the stats package: https://www.rdocumentation.org/packages/stats/versions/3.6.2/topics/bartlett.test

The original citation is Bartlett, M. S. (1937). Properties of sufficiency and statistical tests. Proceedings of the Royal Society of London. Series A - Mathematical and Physical Sciences, 160(901), 268–282. https://doi.org/10.1098/rspa.1937.0109

As for the O'Brien test. You can find it here https://www.rdocumentation.org/packages/lawstat/versions/3.2/topics/levene.test implemented as one of several possible corrections to the Levene test.