-
Notifications
You must be signed in to change notification settings - Fork 20
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
Predicting new groups in dbart_vi? #17
Comments
I'm rewriting that right now - hope to have something by the end of the week. |
Great! Will test it in my application as soon as you do |
I checked in something (9fa610e) a few days ago that adds predict for out-of-sample groups. Let me know if you encounter any issues. |
Vince, how would this work if, instead of using the Right now, after doing what I described above, I can see within the BART object that the new category was added to the Should I instead be looking to Thanks for this great feature. |
I'm sorry, but I don't directly follow. If you don't use predict and saved trees but have new levels in the test data, it should create random effects for them. I think the confusion is maybe that I know all of this is confusing, which is why I'm working on a more general framework here. At the moment it can only do continuous outcomes, but it should have a cleaner interface. |
This is very helpful, thanks! |
I am using dbart_vi to fit a random intercept model to allow for estimation of correlated effects across multiple outcomes. The ultimate goal of this analysis is to inform a microsimulation and thus it is important that I can predict new observations. Currently it looks as if predict requires the same group levels to be present, it it possible to allow prediction into new groups (so that for example, I can predict into a simulated population that is twice as large as the training set).
The text was updated successfully, but these errors were encountered: