Skip to content

Stopping model fitting early

Brian Lau edited this page Aug 3, 2015 · 1 revision

Sampling or optimization can be terminated early using the stop() method,

fit = stan('file','rats.stan','data',rats_dat,'iter',50000);
fit.stop();

If sampling, any samples generated are returned.