Hi all, I got the following error while running a Stan file in MATLAB R2016.
Warning: Stan seems to have exited badly.
In StanFit/process_exit_failure (line 290)
In StanFit/process_exit (line 170)
In processState/set.exitValue (line 30)
In processManager.pollTimerStop (line 508)
In timer/timercb (line 30)
In timercb (line 13)
In StanFit/block (line 365)
In timeserial (line 52)
With the warning, the Stan file can not run continue and stop here.
I got a correct answer when I not use ‘for’ loop. However, as vector length is incremented, I have to use loop code.
Does anybody have any idea for why does Stan exit badly and how can I slove it?