pingouin icon indicating copy to clipboard operation
pingouin copied to clipboard

Bayes Factor for spearman correlation?

Open SebastianSpeer opened this issue 2 years ago • 1 comments

Dear Pingouin team,

Are you also working on an implementation for computing the Bayes Factor for Spearman correlation?

If not, do you have any suggestions where to find some guidance to implement this in Python?

Best,

Sebastian

SebastianSpeer avatar Jan 18 '22 16:01 SebastianSpeer

Hi @SebastianSpeer,

Thanks for opening the issue! I am not working on an implementation of the Spearman Bayes Factor. In fact, I am not aware of any method for calculating the BF of a Spearman correlation. To be honest, I would just use the pg.bayesfactor_pearson function regardless of whether you used a Pearson or Spearman correlation.

Two R functions that may be of interest:

  • https://www.rdocumentation.org/packages/BayesianFirstAid/versions/0.1/topics/bayes.cor.test
  • https://easystats.github.io/correlation/reference/correlation.html

Best, Raphael

raphaelvallat avatar Jan 18 '22 19:01 raphaelvallat