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

chi-square p-values of "<0.001" when only one observed factor category #355

Open
fabones1 opened this issue May 10, 2022 · 0 comments
Open

Comments

@fabones1
Copy link

When you compare groups in columns using a chi-square test and there is only one observed level of a factor outcome, a p-value of "<0.001" is shown. This should be shown as "NA", blank, or something similar. When you specify Fisher's exact test, a blank p-value is correctly reported in this situation.

comptable <- tableby(period ~ rph_doseinc, data=retro, total=FALSE, cat.test="chisq")
summary(comptable, text=TRUE)

image

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