Skip to content

Added plotting function for unpaired proportional data#115

Merged
josesho merged 3 commits intoACCLAB:v0.4devfrom
bubbleli:xueqi_proportional_data
Jun 7, 2021
Merged

Added plotting function for unpaired proportional data#115
josesho merged 3 commits intoACCLAB:v0.4devfrom
bubbleli:xueqi_proportional_data

Conversation

@bubbleli
Copy link
Copy Markdown
Contributor

@bubbleli bubbleli commented Jun 3, 2021

A working example is:

from scipy.stats import normbernoulli
import pandas as pd
control = bernoulli.rvs(0.3loc=0size=1000random_state=12345)
test    = bernoulli.rvs(0.4loc=0size=1000random_state=12345)
my_df   = pd.DataFrame({"control"control,
                            "test"test})
my_dabest_object = dabest.load(my_dfidx=("control""test"), proportional=True)
print(my_dabest_object.mean_diff.plot())

Screenshot 2021-06-04 at 3 33 33 PM

@josesho
Copy link
Copy Markdown
Member

josesho commented Jun 3, 2021

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

@josesho josesho merged commit 375ee70 into ACCLAB:v0.4dev Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants