stan-dev / stan-dev/posterior

Coding matrix/vector variables in tidy form

Open
#61 15 comments 1 reaction 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

When variables are vector/matrix they are stored in a tibble named as a[i,j].

@jgabry and I were talking about whether there was some utility of creating a convenience function that splits the indices in long form i.e.,

param idx1 idx2
a i j

It would be useful for getting things in the right form for Bayesplot.

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

Review the proposed tibble representation for vector and matrix variables, including how names such as a[i,j] should become long-form param, idx1, and idx2 columns. Check how Bayesplot expects these values, then define the convenience function's input, output, and completion examples before implementing it.

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
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.