cmdstan icon indicating copy to clipboard operation
cmdstan copied to clipboard

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

Open mitzimorris opened this issue 5 years ago • 2 comments

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

mitzimorris avatar Jul 22 '20 17:07 mitzimorris

CmdStanPy and CmdStanR wrappers provide ways to get a summarize the sample - it only requires computing stats on each column's worth of output; all the StanSummary analysis of correlation between samples isn't necessary.

mitzimorris avatar Jul 22 '20 17:07 mitzimorris

this could be done by perl or awk. https://www.commandlinefu.com/commands/view/2967/sum-columns-from-csv-column-col

mitzimorris avatar Jul 22 '20 17:07 mitzimorris