stan-dev / stan-dev/bayesplot

PPC plot for categorical outcomes

Open
#308 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

@n-kall asked me to create an issue concerning the default PPC plot for categorical outcomes, which is less than ideal.

Maybe it would be nice to be able to generate plots such as the below? The plot below is based on a categorical regression model fit to the Palmers penguins dataset. Instead of showing kdeplots or histograms for the outcomes based on the posterior draws, it shows kdeplots of specific covariates, grouped according to the outcome data/predictions, i.e. in the below plot each facet represents one covariate, while each color represents one species of penguins.

18365384882810213585

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 default PPC plotting entry point for categorical outcomes and compare its current output with the linked penguins example. Clarify which covariates and grouping behavior the API should support, then define done as a documented plot that produces the requested covariate facets and outcome-based groups.

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
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.