raphaelvallat / pingouin

Statistical package in Python based on Pandas
https://pingouin-stats.org/
GNU General Public License v3.0
1.64k stars 139 forks source link

Implement power analysis for kendall correlation coefficient #212

Open renatoparedes opened 3 years ago

renatoparedes commented 3 years ago

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

raphaelvallat commented 3 years ago

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

renatoparedes commented 2 years ago

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