Hi,
When running a model with above Sample() settings, stansummary will fail:
MacBook-Pro:tmp rob$ /Users/rob/Projects/Stan/cmdstan/bin/stansummary simple_samples_*.csv
Warning: non-fatal error reading adapation data
Warning: non-fatal error reading adapation data
Warning: non-fatal error reading adapation data
Warning: non-fatal error reading adapation data
libc++abi.dylib: terminating with uncaught exception of type std::invalid_argument: mean: v has size 0, but must have a non-zero size
Abort trap: 6
I vaguely remember this was discussed some time ago, but just wanted to refresh the current status.
Below how I run the model (in my case from within Julia, but below the command line steps).
With thin=1 the model works file.
Thanks.
Rob
./simple sample num_samples=1000 num_warmup=1000 save_warmup=1 thin=2 adapt engaged=1 gamma=0.05 delta=0.8 kappa=0.75 t0=10.0 init_buffer=75 term_buffer=50 window=25 algorithm=hmc engine=nuts max_depth=10 metric=diag_e stepsize=1.0 stepsize_jitter=1.0 random seed=-1 init=2 id=1 data file=simple_1.data.R output file=simple_samples_1.csv refresh=100
/Users/rob/Projects/Stan/cmdstan/bin/stansummary simple_samples_*.csv
My test model:
simple.stan:
data {real sigma;}
parameters {real y;}
model {y ~ normal(0,sigma);}
simple_1.data: