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

Add a warning if all levels of a categorical response are the same #91

Open
gabrielodom opened this issue Sep 2, 2020 · 0 comments
Open
Assignees

Comments

@gabrielodom
Copy link
Owner

If the user supplies a data frame with all the same label (for instance, all female), and attempts to run AES-PCA on this with the single-level factor as a response, two things will happen:

  1. the code will take 2-3 times longer to execute (no idea why), and
  2. all the p-values will be 0 (is this bad?)

Normally, this would not happen, as predicting the outcome of a variable that's always TRUE doesn't seem like a reasonable thing to do, so we should add a warning.

@gabrielodom gabrielodom self-assigned this Sep 2, 2020
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

1 participant