# N best tips & tricks (or the go-to checklist) for new Stan model builders?

**URL:** <https://discourse.mc-stan.org/t/n-best-tips-tricks-or-the-go-to-checklist-for-new-stan-model-builders/8688>\
**Category:** Modeling\
**Created:** [May 2, 2019, 2:17am UTC](https://discourse.mc-stan.org/t/n-best-tips-tricks-or-the-go-to-checklist-for-new-stan-model-builders/8688 "2019-05-02T02:17:35Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![tlyim](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/tlyim/32/3834_2.png) [@tlyim](https://discourse.mc-stan.org/u/tlyim)\
**Post date:** [May 2, 2019, 2:17am UTC](https://discourse.mc-stan.org/t/n-best-tips-tricks-or-the-go-to-checklist-for-new-stan-model-builders/8688/1 "2019-05-02T02:17:35Z")

</div>

Is there a one-page checklist of the captioned written somewhere?

In my recent exploration as a newbie (see [this post](https://discourse.mc-stan.org/t/how-to-determine-the-combination-of-iter-warmup-adapt-delta-max-treedepth/8687)), I find the following tricks most useful:

- specify any known bounds of a parameter (thereby help Stan to pick the appropriate default prior, eg, uniform vs. normal)

- explicitly specify a prior for a parameter that better reflects your knowledge about it than Stan’s default prior choice could possibly represent in general

- use non-centered parametrization **EDIT:** (eg, to fix problematic correlated parameters following [this example](https://discourse.mc-stan.org/t/correlated-coefficients-example-whats-going-wrong/5807/2))

```
  pgw_sd ~ normal(0, 0.1);
  pgw_L ~ lkj_corr_cholesky(2);
  pgw_err ~ normal(0, 0.05);

```

- **EDIT:** must-read checklist, for new model builders, in the beginning of [this post](https://www.martinmodrak.cz/2018/02/19/taming-divergences-in-stan-models/) by @martinmodrak
  - clear and intuitive visualization of the typical causes of various problematic pairs plot patterns in the rest of the post
  - also, the [Stan best practices](https://github.com/stan-dev/stan/wiki/Stan-Best-Practices) link mentioned in the post

**EDIT:** (after two months of further exploration)

- These two posts should also be interesting to new Stan model builders:
  - [Rhat \< 1 (as low as 9.94e-01). Why?](https://discourse.mc-stan.org/t/rhat-1-as-low-as-9-94e-01-why/9252)
  - [Divergence vs hitting max\_treedepth](https://discourse.mc-stan.org/t/divergence-vs-hitting-max-treedepth/9399)

- if you have a model that runs fine in terms of no divergences but the run time is slow (perhaps due to unnecessarily long `warmup` and `iter`), my [findings](https://discourse.mc-stan.org/t/problems-remain-after-non-centered-parametrization-of-correlated-parameters/8980/33) about choosing the combination of `adapt_delta / max_treedepth / metric=dense_e vs. diag_e / term_buffer / window / warmup / iter` in another post might be useful to you.

**Can you add to this list** based on your experience? And perhaps even order your tips according to their usefulness/importance/priority.

---

_[View the full topic](https://discourse.mc-stan.org/t/n-best-tips-tricks-or-the-go-to-checklist-for-new-stan-model-builders/8688)._
