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

Discrete pit in ppc pit ecdf #316

Merged
merged 6 commits into from
Jan 22, 2024
Merged

Discrete pit in ppc pit ecdf #316

merged 6 commits into from
Jan 22, 2024

Conversation

TeemuSailynoja
Copy link
Collaborator

This PR implements the changes to ppc_pit_ecdf() and ppc_pit_ecdf_grouped()mentioned in #315:

  • Implement randomized PIT.
  • Add axis labels.
  • Make confidence band lines dashed.

Additionally, I updated the recommendations for the K parameter:

K: An optional integer defining the number of equally spaced evaluation
points for the ECDF. Reducing K when using interpolate_adj = FALSE makes
computing the confidence bands faster. For ppc_pit_ecdf and
ppc_pit_ecdf_grouped, defaults to ncol(yrep) + 1, or length(pit) if PIT
values are supplied. For mcmc_rank_ecdf defaults to the number of
iterations per chain in x.

And I included some more interpolation values for the confidence bounds into R/sysdata.rda. These speed up the plot when using the new default for K.

@avehtari
Copy link
Contributor

In case of ECDF (diff) maybe y-axis label should also include be ECDF (diff) or ECDF (difference) or ECDF-difference?

Otherwise, looks good

@TeemuSailynoja
Copy link
Collaborator Author

ECDF - difference looked the best when I tried it. I'll add that in.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (07df2ef) 98.52% compared to head (02b35a7) 98.52%.

❗ Current head 02b35a7 differs from pull request most recent head d97e7d9. Consider uploading reports for the commit d97e7d9 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #316   +/-   ##
=======================================
  Coverage   98.52%   98.52%           
=======================================
  Files          35       35           
  Lines        5006     5007    +1     
=======================================
+ Hits         4932     4933    +1     
  Misses         74       74           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@TeemuSailynoja
Copy link
Collaborator Author

Changes to the axis labels are now included in the latest commit.

Copy link
Contributor

@avehtari avehtari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK for me

@TeemuSailynoja
Copy link
Collaborator Author

@jgabry this should now be ready for merge.

Copy link
Member

@jgabry jgabry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @TeemuSailynoja!

@jgabry jgabry merged commit 55e5b20 into master Jan 22, 2024
3 of 6 checks passed
@jgabry jgabry deleted the discrete_PIT_in_ppc_pit_ecdf branch January 22, 2024 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants