stan-dev / stan-dev/bayesplot

Binned residual plots with respect to predictors

Open
#263 0 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

Is it possible to use ppc_error_binned(), or any other bayesplot functions, to make binned residual plots with respect to model predictors? The use case is Gelman et al (2020, Section 14.5.2, "Plotting binned residuals versus inputs of interest"). Vehtari showed how to do so with a custom function he called binned_resids(), here.

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 ppc_error_binned() and the linked Vehtari binned_resids() example, then compare their inputs and output plots with the Gelman et al. Section 14.5.2 use case. Done should mean determining whether bayesplot can support binned residual plots against model predictors and defining the required behavior.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.