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

Only predict into levels that are fit in the model, and issue a warning when they are not available. Also, enable ... to pass arguments to boot::boot() #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

billdenney
Copy link
Contributor

This fixes #52 by setting factor levels to NA when they are not part of the data that are fit in the update. (It should be compatible with PR #51 as it changes code below the model fitting while that PR changes code up to and including the model fitting.)

…ng when they are not available. Also, enable ... to pass arguments to `boot::boot()`
@billdenney
Copy link
Contributor Author

FYI, one downside to this PR is that there will usually be tons of warnings. Some way to manage the warnings so that they only occur once per column per bootstrap would likely be helpful. The fix that occurred to me is a bit more invasive, and it wasn't clear that the benefit was worth the code maintenance (maybe there is a simpler way than the one that occurred to me, though).

@jthaman
Copy link
Owner

jthaman commented May 31, 2021

Just a note that I have not forgotten about this PR and will review.

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.

Failure in bootstrapped CI due to missing factor levels
2 participants