rhat {bayesnec} | R Documentation |
Extract Diagnostic Quantities of 'brms' Models
Description
Extract Rhat statistic that can be used to diagnose sampling behaviour
of the algorithms applied by 'Stan' at the back-end of 'brms'.
x
should be of class
bayesnecfit
or bayesmanecfit
.
Usage
## S3 method for class 'bayesnecfit'
rhat(x, rhat_cutoff = 1.05, ...)
## S3 method for class 'bayesmanecfit'
rhat(x, rhat_cutoff = 1.05, ...)
Arguments
x |
An object of class |
rhat_cutoff |
A |
... |
Unused. |
Value
A list
containing a vector or Rhat values
returned for each parameter for a brmsfit
object,
for each of the fitted models.
Examples
## Not run:
library(bayesnec)
rhat(manec_example)
nec4param <- pull_out(manec_example, model = "nec4param")
rhat(nec4param)
## End(Not run)
[Package bayesnec version 2.1.2.0 Index]