I am conducting a simulation study which processes a model in Stan (i.e., repeatedly, a dataset is simulated under a data-generating model and then analysed using Bayesian model implemented in Stan). This is all implemented in Stata. It ran fine for 164 simulations but for the 165th Stata reported “Terminate batch job”. The data for this 165th simulation looks fine. Any ideas why this termination notice popped up?
The termination notice popped up during the compiling stage and Stata reported the following “The system cannot find the file C:\rachaelh\cmdstan-2.23.0\model_simStudy-inline-YlinearmissbinU.exe.”
Note, “model_simStudy-inline-YlinearmissbinU.do” is the name of the Stata do-file which contains my Stan code and my call of Stata’s stan command.
I am using Stata V15.1, cmdstan V2.23, Rtools 3.5.0.4.
Thanks
Rach