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

DS-3646: Catching empty levels when Calibrate called outside widget #26

Merged
merged 3 commits into from
May 20, 2022

Conversation

chrisfacer
Copy link
Contributor

No description provided.

Empty levels should always be dropped when checking the categorical target variables. Previously, levels were not being dropped when the subset argument is NULL. However, when Calibrate calls categoricalTargets, the default value of subset is NULL, so that any empty categories would not be dropped. Empty categories cause errors when calling rake from the survey package. Users using the widget would never have encountered this error because the widget always passes a non-null value for subset.
@chrisfacer chrisfacer requested a review from mwmclean May 17, 2022 05:59
Ensure weights normalized prior to checking for trims
@mwmclean mwmclean merged commit 92c995e into master May 20, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants