mggg / ecological-inference

Ecological inference, in Python
MIT License
28 stars 11 forks source link

Todos: #35

Open karink520 opened 3 years ago

karink520 commented 3 years ago

If you want to tackle any of these, just reply below, and I'll mark that you're on it!


gabeschoenbach commented 3 years ago

I can also take the color legend in precinct_level_plot and adding plots / reporting differences between racial groups for RxC

karink520 commented 3 years ago

Amazing! TwoByTwoEIBaseBayes.polarization_report(), TwoByTwoEIBaseBayes._calculate_polarization(), TwoByTwoEIBaseBayes.plot_polarization_kde() what's implemented in the 2x2 case (that last one uses plot_utils.plot_polarization_kde() ), added and merged today, with examples uses in santa_clara_demo.ipynb (look for the green kdes).

gabeschoenbach commented 3 years ago

FYI, added a TODO about generalizing the plotting functions

bblpo commented 3 years ago

Great contribution to many fields. Thanks to your hard work.

One thing that may be more useful to do is to make covariates an option for 2x2. See the last example from the original post: https://gist.github.com/ColCarroll/9fb0e6714dc0369acf6549cededcc875