stan-dev / stan-dev/stan

vector-output log density functions

Open
#1,697 4 comments 0 reactions 1 assignee View on GitHub

@bob-carpenter is already working on this.

Since Nov 19, 2015.

  • #2751 by @SteveBronder — open
feature
Dominant language
C++
Stars
2.8k
Forks
388
Avg merge
2d 17h
Merged PRs (30d)
15

Description

Idea from Aki Vehtari on stan-dev:

In Stan 2.8, log density functions like normal_log() output the sum of the densities of their components (with appropriate broadcasting of scalars).

It would be nice to allow them to be specified to return a vector, for instance for WAIC or LOO calculations. Aki suggests somethign roughly like

log_lik <- normal_ld<norm=true, sum=false>(y | X * b, sigma);

or maybe with vec=true instead of sum=false.

The result of #1683 will help with implementation.

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.