Model Diagnostics
Key Convergence Metrics
| Metric | Good Value | Concern |
|---|---|---|
| Rhat | < 1.01 | > 1.1 indicates non-convergence |
| ESS bulk | > 400 | < 100 unreliable estimates |
| ESS tail | > 400 | < 100 unreliable intervals |
| Divergences | 0 | Any indicates geometry issues |
| Max treedepth | 0 hits | Hitting limit = slow exploration |
Stan Diagnostics (cmdstanr)
library(cmdstanr)
fit <- mod$sample(data = stan_data, ...)
# Quick check
fit$
[Description truncada. Veja o README completo no GitHub.]