stan-dev / stan-dev/posterior

Allow data frame input to density/cdf/quantile in rvar

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

Nobody has claimed this yet.

feature
Dominant language
R
Stars
171
Forks
26
Avg merge
2d 18h
Merged PRs (30d)
3

Description

A low-priority enhancement, but something that could be nice for data frame-based workflows with rvars would be to allow data frames to be input as quantiles / probs in the density/cdf/quantile functions. This would mirror the data frame input / output format that {distributional} objects can use; see https://github.com/mitchelloharawild/distributional/issues/52#issuecomment-939891904

(the types of inputs covered by this approach are disjoint with the input types already supported by density/cdf/quantile, so it would be easy to do this without breaking old behavior)

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 reading the existing rvar implementations of density, cdf, and quantile and compare their accepted input types with the data frame input/output conventions described in distributional issue #52. Determine the expected data-frame shape and handling for quantiles or probabilities; done means data-frame inputs work in all three functions without changing existing input behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.