pingouin
pingouin copied to clipboard
Implement power analysis for kendall correlation coefficient
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
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
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