easystats / correlation

:link: Methods for Correlation Analysis
https://easystats.github.io/correlation/
Other
435 stars 56 forks source link

refactoring the `correlation` package #298

Open mattansb opened 1 year ago

mattansb commented 1 year ago

As discussed in out meeting yesterday, the correlation package should be broken down (and built up!) into the following "bits":

A simple 1:1 correlation function (currently done in cor_test()

(#261, #260)

The methods for tetrachoric, polychoric, and biserial correlations can be improved, I think.

Things left to do:

A correlation "matrix" function

(#292, #217, #232)

A function for part/partial correlation

(#311, #301, #204?, #181)

This function will also produce multilevel correlations (#253, #207)?

Things to keep


Also welcoming @TomGeva that will be working on this with @bwiernik and myself

WIP can be found here: https://github.com/TomGeva/correlation2

strengejacke commented 1 year ago

Hi Tom, welcome on board! Great to see you participating in the easystats project! 🎉

rempsyc commented 1 year ago

Welcome Tom! :) good luck with all this work 😉

DominiqueMakowski commented 1 year ago

Hi @TomGeva good to have you ☺️ Looking forward to that roadmap and don't hesitate to nag us if there's anything

mattansb commented 11 months ago

BTW, I have some code and a precompiled model (written for a client) to estimate full Bayesian correlation matrices (and partial correlation matrices) using {cmdstanr} (and {posterior}). We might want to use that instead of {BayesFactor}.

TomGeva commented 11 months ago

Happy to join!, thanks for the kind words 😁

DominiqueMakowski commented 11 months ago

We might want to use that instead of {BayesFactor}

Yeah it'd be great to have more flexibility in terms of prior setting and all, assuming it preserves some of the advantages of BayesFactor (you don't need to compile stan stuff, it's fast and it gives BFs out of the box)