stan-dev / stan-dev/cmdstan

standalone generated quantities need way to run stansummary on resulting csv file

Open
#912 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement user experience
Dominant language
C++
Stars
238
Forks
106
Avg merge
2h 29m
Merged PRs (30d)
6

Description

Summary:

The CmdStan method generate_quantities doesn't directly provide a way to summarize the output csv file;
either modify stansummary to recognize generate quantities output, or create new utility.

Description:

The csv output file isn't a proper Stan csv output file - it's missing:

  • initial comment with "thin" information
  • final comments for timing information

Add comments to CSV file so that it looks like a Stan CSV file that can be parsed
by stan::io::csv_reader; modify stansummary so that missing sampler params columns are OK.

Current Version:

v2.23.0

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 with the CmdStan generate_quantities output and the stansummary handling described in the issue, then inspect how stan::io::csv_reader parses CSV comments and columns. Add the missing thin and timing comments and allow missing sampler-parameter columns; done means the resulting CSV can be parsed and summarized by stansummary.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.