dcomtois / summarytools

R Package to Quickly and Neatly Summarize Data
522 stars 78 forks source link

Fisher's exact test in ctable()? #195

Open AntoineSoetewey opened 6 months ago

AntoineSoetewey commented 6 months ago

Dear @dcomtois,

First of all, thanks a lot for this great package!

I often use the ctable() function for contingency tables and the Chi-square test of independence, withe the argument chisq = TRUE.

This is not a surprise, for small sample sizes (i.e., expected value < 5) it is recommended to use the Fisher's exact test. I have not seen the possibility to choose this test when using ctable(). Did I miss it in the documentation? If not, is this something you would consider adding in the future?

Regards, Antoine