You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vignettes/rstanarm.Rmd
+14-5Lines changed: 14 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -334,15 +334,16 @@ the relevant issues.
334
334
335
335
### Markov chains did not converge
336
336
337
-
__Recommendation:__ run the chains for more iterations. <br>
337
+
__Recommendation:__ run the chains for more iterations (in certain cases, see qualification below). <br>
338
338
339
339
By default, all __rstanarm__ modeling functions will run four randomly
340
340
initialized Markov chains, each for 2000 iterations (including a warmup period
341
341
of 1000 iterations that is discarded). All chains must converge to the target
342
342
distribution for inferences to be valid. For most models, the default settings
343
343
are sufficient, but if you see a warning message about Markov chains not
344
344
converging, the first thing to try is increasing the number of iterations. This
345
-
can be done by specifying the `iter` argument (e.g. `iter = 3000`).
345
+
can be done by specifying the `iter` argument (e.g. `iter = 3000`). However, if all parameters have proper priors (no priors were set to `NULL`), and you used the default values
346
+
for iterations (2000) and chains (4), and Rhats (explained below) are greater than 2, then increasing the number of iterations alone is unlikely to solve to the problem.
346
347
347
348
One way to monitor whether a chain has converged to the equilibrium distribution
348
349
is to compare its behavior to other randomly initialized chains. This is the
0 commit comments