I was wondering if there is any way to automatically stop the stan() function if
it lasts too long? I am studying the time effect of different combinations of the parameters Kappa, Gamma and t0 on the NUT sampler for particular models. However, I want first to discard some possibilities which take too much time.
All the classical time tools in R don’t work… I didn’t find any of them which can kill a function if it takes to much time…
Thanks in advance