ACCLAB / DABEST-python

Data Analysis with Bootstrapped ESTimation
https://acclab.github.io/DABEST-python/
Apache License 2.0
339 stars 47 forks source link

Added plotting function for unpaired proportional data #115

Closed bubbleli closed 3 years ago

bubbleli commented 3 years ago

A working example is:

from scipy.stats import norm, bernoulli
import pandas as pd
control = bernoulli.rvs(0.3, loc=0, size=1000, random_state=12345)
test    = bernoulli.rvs(0.4, loc=0, size=1000, random_state=12345)
my_df   = pd.DataFrame({"control": control,
                            "test": test})
my_dabest_object = dabest.load(my_df, idx=("control", "test"), proportional=True)
print(my_dabest_object.mean_diff.plot())
Screenshot 2021-06-04 at 3 33 33 PM
josesho commented 3 years ago

Can you post the output as an image? thanks!!