-
Notifications
You must be signed in to change notification settings - Fork 27
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
BCaConfInt can't handle data with same value #40
Comments
Thanks for discovering this error, it certainly needs better handling! After digging into this, here are some of my thoughts: The issue is caused because all On a more practical matter, other tools (such as I'll need to have a closer look, and I'm happy for any input and thoughts. At the moment, I'm leaning towards
|
Hi @juliangehring! I think either choice is fine! Below some thoughts: Say somebody tries to bootstrap the statistic f(x)=0.0, then maybe the interval [0.0,0.0] indeed makes sense. Similarly if the data is identical. Of course, if such an interval is returned, it is probably questionable if this is really what the user was going after. But then again, bootstrap intervals are not always accurate anyway, there could be many reasons they might not have the right coverage, yet I still think it makes sense to return them (and the user can decide if they trust the result). So, I would go with returning a interval of width zero, since Julia in general is not a language that tries to hold people's hands (as long as the difference to R's But also a warning and/or |
Thanks @nignatiadis for the detailed explanation - this is a big help! In this case, let's stick with @rofinn original suggestion: Return a confidence "interval" with width 0 around |
Closed with #41. |
Probably just needs a special case to return
(t0, t0, t0)
?The text was updated successfully, but these errors were encountered: