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

Bootstrap must be stratified for discrete treatments #125

Closed
kbattocchi opened this issue Oct 29, 2019 · 0 comments · Fixed by #236
Closed

Bootstrap must be stratified for discrete treatments #125

kbattocchi opened this issue Oct 29, 2019 · 0 comments · Fixed by #236
Labels
enhancement New feature or request

Comments

@kbattocchi
Copy link
Collaborator

If we have a discrete treatment and we use bootstrap, then it's possible that some subsamples will not have the full set of treatments, in which case some of our code will break. This becomes more likely as the number of replicates increases or the number of samples (or number of samples with one particular treatment) decreases.

Instead, we need to implement a variant of bootstrap that stratifies by treatment, so that we are sure to keep some examples with each treatment in each bootstrap sample.

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

Successfully merging a pull request may close this issue.

1 participant