stan-dev / stan-dev/bayesplot

Useful plots for MRP

Open
#208 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
442
Forks
93
Avg merge
3h 11m
Merged PRs (30d)
1

Description

@jgabry and I were talking that it might be handy to have extra functionality in bayesplot to do MRP style plots.

Currently you can use BayesPlot with posterior_predict objects provided the observed and newdata are of the same size. This is useful to be able to compare observed versus predicted (when using posterior_predict) to do model diagnostics.

For MRP it would be useful to increase this functionality where newdata of a different size to the fitted data, and also to include functionality to add a weighted estimate (if weights are available), a raw sample estimate and the full posterior predictive estimate.

I know @bbbales2 has some great plots for MRP, so he might be able to weigh in. I'll follow up with an example to show what I envision it would look like. @mitzimorris and @andrewgelman might be interested too.

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 reviewing bayesplot's existing posterior_predict plotting functionality and the MRP plotting examples mentioned in the issue. The work would be complete when plots support newdata of a different size from the fitted data and can show weighted, raw-sample, and full posterior-predictive estimates.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.