Skip to content

divergent transitions on the bottom of traceplots #42

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

Closed
shiraamitchell opened this issue Oct 18, 2016 · 2 comments · Fixed by #58
Closed

divergent transitions on the bottom of traceplots #42

shiraamitchell opened this issue Oct 18, 2016 · 2 comments · Fixed by #58
Labels

Comments

@shiraamitchell
Copy link

Is there a way to add to stan_trace() the ability to display divergent transitions on the bottom of traceplots?

Thank you!

@jgabry
Copy link
Member

jgabry commented Oct 18, 2016

Thanks for the suggestion. This should be doable with geom_rug but will
require having the divergence info in the right format. In terms of the
user interface, I think it could either

(a) be an argument to mcmc_trace (that's the underlying traceplot function
in the new bayesplot package that will eventually be called by stan_trace
when released), e.g.,

mcmc_trace(..., divergences = optional_object_containing_divergence_info)

in which case stan_trace in rstan could automatically supply the divergence
info to mcmc_trace

or

(b) be a function that returns an object that can be added to the ggplot
object created by mcmc_trace, e.g.,

mcmc_trace(...) + divergence_rug(info)

where info contains the divergece data, and stan_trace could handle that
for the user as well.

@jgabry jgabry added the feature label Oct 19, 2016
@jgabry
Copy link
Member

jgabry commented Nov 1, 2016

A preliminary implementation of option (a) from above is now available on the branch named feature/issue-42-trace-w-divergences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants