pingouin icon indicating copy to clipboard operation
pingouin copied to clipboard

Implement power analysis for kendall correlation coefficient

Open renatoparedes opened this issue 2 years ago • 2 comments

Hello,

I'd like to contribute implementing a power analysis function for the kendall correlation coefficient based on this paper. The article also provides calculations computed with the SAS software which can be used for testing.

Please let me know what do you think.

Cheers,

Renato

renatoparedes avatar Nov 15 '21 02:11 renatoparedes

Hi @renatoparedes,

Thank you! Do you think this could be easily integrated into the power_corr function? My preferred way would be to add a method argument to this function, which would accept either "pearson" (default), "spearman" or "kendall", e.g. power_corr(..., method="kendall").

Thanks, Raphael

raphaelvallat avatar Nov 17 '21 18:11 raphaelvallat

Hello @raphaelvallat,

I think it would be straight forward to add such method argument to the power_corr function. However I'm still figuring it out how to implement it without making the code too long (like with multiple switchs). I'll share a first prototype in the following days.

Cheers,

Renato

renatoparedes avatar Dec 04 '21 22:12 renatoparedes