read_cmdstan_csv(files) works without any problems when loading the files. But when using mcmc_trace(fit$draws(variables = c("alpha", "beta[1]"))), it tells me $ operator not defined for this S4 class.
With both files[1] and files[2], the following tells me the file is corrupt, this is the complete message in German language:
fit <- as_cmdstan_fit(files[2])
Der Befehl "'[#a-zA-Z]'" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Fehler: Supplied CSV file is corrupt!
I think we’re getting closer, this seems to be the case. Sorry that we’ve been working on the wrong thing.
How can I change this part of the Batch script to to make sure it’s not using the same seed?
for i in {1..2}
do
./logistic_model sample algorithm=hmc engine=nuts max_depth=10 num_samples=2000 data file=log_data.R output file=output_${i}.csv &
done
wait