Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frequency table in the chi square test doesn't respect the order of categories #56

Closed
jbao opened this issue Nov 4, 2016 · 1 comment
Assignees

Comments

@jbao
Copy link

jbao commented Nov 4, 2016

e.g. when the counts of observed categories in both groups are as follows:

treat_counts
female     39364
male        6561
unknown     4474

control_counts
f               2
female     152099
m               2
male        24299
unknown     15084

the observed frequency table is:

observed_ct
female      male  unknown        f        m
0     0.0   39364.0      0.0   6561.0   4474.0
1     2.0  152099.0      2.0  24299.0  15084.0
@jbao
Copy link
Author

jbao commented Nov 7, 2016

This bug is related to pandas-dev/pandas#14600 and therefore won't be fixed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants