jasp-stats / jasp-issues

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

Enhancement: DFA #256

Closed TarandeepKang closed 7 months ago

TarandeepKang commented 5 years ago
* Enhancement: Add Discriminant Function Analysis * Purpose: Multivariate test of between group differences, and the minimum number of dimensions needed to describe these differences. * Use-case: Widely used in studies of animal cognition. See following papers among many others: Slocombe, K. E., & Zuberbühler, K. (2005). Functionally referential communication in a chimpanzee. Current Biology, 15(19), 1779-1784. Crockford, C., Gruber, T., & Zuberbühler, K. (2018). Chimpanzee quiet hoo variants differ according to context. Royal Society open science, 5(5), 172066. Note the modified procedure in the second paper. Also widely used in other areas of psychology, i.e. Betz, N. E. (1987). Use of discriminant analysis in counseling psychology research. Journal of Counseling Psychology, 34(4), 393. Again amongst many other areas. Already available in SPSS and other proprietary software. Thanks for all the great work! P.S.: As previously discussed with the team, I would be more than happy to help with beta-testing etc!
AlexanderLyNL commented 4 years ago

@TarandeepKang Would you still be interested in testing out linear discriminant analysis? If so, could you please send me an email: a.ly@jasp-stats.org

rsbalkin commented 2 years ago

This article is a bit dated but denotes best practice with post hoc MANOVA. I concur with TarandeepKang. This is needed.

Performing multivariate group comparisons following a statistically significant MANOVA.pdf

JohnnyDoorn commented 1 year ago

Hi @rsbalkin and @TarandeepKang ,

Sorry I am just now taking note of this. I think this analysis is already implemented, but part of the machine learning module. Could you take a look and see if this analysis does what you want it to do?

Kind regards Johnny

rsbalkin commented 1 year ago

So, I typically use DFA as a post hoc for MANOVA. SPSS gives me very different output that I cannot replicate in machine learning for JASP.

Take a look.

Rick

Richard S. Balkin, Ph.D., LPC, NCC Editor-in-Chief, International Journal for the Advancement of Counselling Fellow, American Counseling Association Professor & Chair, Coordinator for Educational Research and Design Department of Leadership and Counselor Education School of Education University of Mississippi email: @.***



On Feb 28, 2023, at 5:18 AM, JohnnyDoorn @.***> wrote:

Hi @rsbalkin https://github.com/rsbalkin and @TarandeepKang https://github.com/TarandeepKang ,

Sorry I am just now taking note of this. I think this analysis is already implemented, but part of the machine learning module. Could you take a look and see if this analysis does what you want it to do?

Kind regards Johnny

— Reply to this email directly, view it on GitHub https://github.com/jasp-stats/jasp-issues/issues/256#issuecomment-1448003140, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANHERYGJ2TXWM3Y4BRS5MJTWZXNGRANCNFSM4GF6N24Q. You are receiving this because you were mentioned.

TarandeepKang commented 10 months ago

Hi @JohnnyDoorn,

I would also like to request the inclusion of the permuted version of this test as I mentioned in #458

The pDFA has a number of advantages over the regular discriminant function analysis. This analysis was designed and proposed by Mundry and Sommer (2007). In the abstract of the paper The authors summarise the advantages of the test thus:

“ The discriminant function analysis (DFA) is a multivariate method that is frequently used in bioacoustic research to examine, for instance, whether calls from different species, contexts, or social groups can be distinguished by their acoustic properties. Most published studies include more than one call per subject into such an analysis. This, in fact, leads to a two-factorial data set that includes the factor ‘subject’ in addition to the factor of interest (e.g. species, context, or social group). The regular version of the DFA, however, does not allow for the analysis of such data sets without violating the assumption of independence. In this paper, we show that analysing factorial data sets using a conventional DFA is a case of pseudoreplication and tends to produce (sometimes grossly) incorrect results. In such a case the discriminability of species, contexts or groups etc. can be drastically overestimated. Furthermore, we provide a permutation-based procedure that copes with such data sets.“

The citation for the paper is: Mundry, R., & Sommer, C. (2007). Discriminant function analysis with nonindependent data: Consequences and an alternative. Animal Behaviour, 74(4), Article 4. https://doi.org/10.1016/j.anbehav.2006.12.028

The author has developed code for SPSS and R, it is not publicly available but can be shared upon request. Happy to contact him for the code if you are interested. Apologies for taking so long to respond, I just checked back on this issue and only now saw that you had posted a question for us in February!

tomtomme commented 8 months ago

Can be closed, since duplicate of https://github.com/jasp-stats/jasp-issues/issues/458