stan-dev / stan-dev/priorsense

[Feature] Add a way to plot prior distributions in diagnostic plots

Open
#124 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.