-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
Issue 267 ecdf plots with confidence bands #282
Issue 267 ecdf plots with confidence bands #282
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR looks already quite good. I like the code structure and readability. However, I think there are not yet any unit tests and both the internal and user-facing documentation is a bit short at times and may need some fixes as described in my comments.
…ssue-267-ecdf-plots-with-confidence-bands
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, thank you! The only remaining issue is the storage of a couple of .svg files which I am not sure should really be tracked by git.
Thanks! Looks good to me. Checks are now in progress. |
There was one final bug introduced in a merge and I had apparently run the test without loading the merged files in. I have now fixed that in the ppc_pit_ecdf functions and all the tests should pass. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #282 +/- ##
==========================================
- Coverage 98.47% 97.72% -0.76%
==========================================
Files 35 35
Lines 4661 4969 +308
==========================================
+ Hits 4590 4856 +266
- Misses 71 113 +42 ☔ View full report in Codecov by Sentry. |
There are still some checks failing. Can you take a look and fix them? |
This PR has been approved a long time again, but some checks are failing. Based on a quick lookm at least one failure is due to a typo, so it would be good to check the failure messages |
I fixed the typo causing the error in testing. |
Thanks! Checks are running now and I will merge as soon as they pass. |
Still fails. Do you see why? |
Windows:
Ubuntu:
|
I fixed the Ubuntu issue. This windows one is on a seemingly unrelated Vignette, and I wasn't able to parse from the error message, what exactly is failing in the processing of the Rmd file. |
Okay, let's try again. |
Silly mistake of failing to remember to commit the updated Rd files after changing the documentation in the .R files. Still, the windows test seems to fail while compiling a Stan model from a Vignette. |
All the checks that actually run (and don't fail because of unrelated reasons) have passed and the PR also passed for me locally. Accordingly, I will merge this PR now. Thank you for your work! |
* fix r cmd check issues from #282 * fix ggplot test issues (closes #289) * add @TeemuSailynoja as contributor
I'm finally doing another bayesplot release so I will include this in the release. Thanks again @TeemuSailynoja for implementing this and @paul-buerkner and @avehtari for reviewing! I noticed a few complaints from R cmd check still
but I think I have fixed these in #291. |
Hi @jgabry, last two edits I would like to include for the ECDF plots would be to
I already have these edits ready, if you think they can make it to the release. The question is, should I commit them to a separate branch, here, or to |
A reworked implementation of the ECDF plots mentioned in issue #267 to replace my earlier pull request.
Main inclusions:
mcmc_rank_ecdf
: rank ecdf plot with confidence bands for assessing if two or more chains sample the same distribution.ppc_pit_ecdf
andppc_pit_ecdf_grouped
: PIT ECDF plot with confidence bands to assess ify
andyrep
contain samples from the same distribution.Both functions allow computation of the confidence bands and interpolation of these bands from precomputed values.