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

cryptic error in prop.test explainer with 3 or more proportions #3

Open
davharris opened this issue May 16, 2015 · 0 comments
Open

Comments

@davharris
Copy link

I tried adding a check for it in the code, but I don't think I understand the big picture well enough to capture the error effectively.

> prop.test(c(11, 10, 4), c(12, 12, 12)) %>% explain()
Quitting from lines 124-128 () 
## Error in if (x$p.value < 1 - attr(x$conf.int, "conf")) {: argument is of length zero
## Warning: NAs introduced by coercion
## Error in if (x$p.value < 1 - attr(x$conf.int, "conf")) "reject" else "do not reject": argument is of length zero
Warning message:
In prop.test(c(11, 10, 4), c(12, 12, 12)) :
  Chi-squared approximation may be incorrect
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

No branches or pull requests

1 participant