Closed tompollard closed 6 years ago
So I would suggest two things:
1: Hartigan's Dip Test: https://cran.r-project.org/web/packages/diptest/
2: Some clever way to link a plot (histogram or kernel density estimate) in the output.
Thanks Jesse. I'm not sure there is an existing implementation of the diptest in Python, so we might need to code this ourselves, unless we can find a good alternative.
We can look into incorporating plots, though I would prefer to avoid this if possible, mainly because it would need several additional dependencies and expands the scope somewhat.
Have not vetted, but: https://github.com/alimuldal/diptest
It's not available on PyPi and I'd prefer to avoid the GPL license, so not sure it's going to be useful unfortunately.
Pull request: https://github.com/tompollard/tableone/pull/44 adds hartigan's Dip Test to the cont_describe
table:
Also raises warnings if possible multimodality is detected:
ref: https://github.com/tompollard/tableone/issues/19