View source: R/converge_rhat.R

Pass in `rstanfit`

model object, and a threshold Rhat value for
convergence. Returns boolean.

1 | ```
is_converged(fitted_model, threshold = 1.05, parameters = c("sigma", "x", "Z"))
``` |

`fitted_model` |
Samples extracted (with |

`threshold` |
Threshold for maximum Rhat. |

`parameters` |
Vector of parameters to be included in convergence determination. Defaults = c("sigma","x","Z"). Other elements can be added including "pred", "log_lik", or "lp__" |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.