checks that N_tr > 40 for nonparametric bootstrap #63
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request would add a safety check stopping the user from using the nonparametric bootstrap when there are fewer than 40
treated units. An alternate strategy could be to raise a warning instead of stopping the program.
I have created the PR because I have read a few papers which use the nonparametric bootstrap with just one or two treated units, in spite of the recommendations given by the documentation. Usage of the nonparametric bootstrap in this context generally seems to create standard-errors that over-exclude zero (at least in the monte carlo simulations I have run), so I think it would be useful for the program to give a warning or error to ensure that users are using the correct bootstrap procedure.