Hi,
Running a fairly simple model in rstan. The chains run, and no errors are reported. However, at the end of the run, I get what looks like an R error. Additionally, the
object that should contain the samples is empty.
The error is:
Elapsed Time: 2811.41 seconds (Warm-up)
2038.34 seconds (Sampling)
4849.75 seconds (Total)
Error in FUN(X[[i]], ...) :
trying to get slot "mode" from an object (class "try-error") that is not an S4 object
In addition: Warning message:
In parallel::mclapply(1:chains, FUN = callFun, mc.preschedule = FALSE, :
4 function calls resulted in an error.
Software:
R version 3.4.0
rstan version 2.15.1
Command that caused error:
post <- stan(“model.stan”, data = datlist, chains = 4, save_warmup = FALSE, refresh=1, iter = 1000, init_r = 0.1, control = list(adapt_delta = 0.9, max_treedepth = 8))
Is this something I may have caused, or is there a bug in rstan?
Thanks!