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

Update crosstab(): Enhance test selection with Fisher exact test and observed vs. expected values #45

Open
LKobilke opened this issue Oct 13, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@LKobilke
Copy link
Collaborator

This issue consists of two requests:

  1. Auto-detect & run Fisher exact test when needed, showing its result + a notification.
  2. Add option to compare observed vs expected values for clearer chi-square explanations to students.
@LKobilke LKobilke added the enhancement New feature or request label Oct 13, 2023
@MarHai
Copy link
Collaborator

MarHai commented Nov 12, 2023

Re 1: I am not a huge fan of auto detection but agree that it would be a nice addition.

Re 2: This is somewhat possible, already (so we could just add it to the documentation):

chi2 <- WoJ %>% crosstab(reach, employment, add_total = TRUE, percentages = TRUE, chi_square = TRUE) %>% model()
chi2$expected
chi2$observed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants