stan-dev / stan-dev/priorsense
[Feature] Add a way to plot prior distributions in diagnostic plots
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 83
- Forks
- 15
- Avg merge
- 12h 48m
- Merged PRs (30d)
- 5
Description
Functionality to also plot the prior distribution would be useful to compare prior and posterior. One way to do this would be for the user to provide a data frame with parameter names and corresponding priors and use ggdist::stat_slab or similar to add these to the plots.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the diagnostic-plot functions and reviewing how their current data inputs are represented. Check how a data frame of parameter names and priors could be accepted and how ggdist::stat_slab could be integrated to compare prior and posterior distributions. Done means the diagnostic plots visibly include the supplied prior distributions alongside the posterior results.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100