check_ESS {rbmi} | R Documentation |
Diagnostics of the MCMC based on ESS
Description
Check the quality of the MCMC draws from the posterior distribution by checking whether the relative ESS is sufficiently large.
Usage
check_ESS(stan_fit, n_draws, threshold_lowESS = 0.4)
Arguments
stan_fit |
A |
n_draws |
Number of MCMC draws. |
threshold_lowESS |
A number in |
Details
check_ESS()
works as follows:
Extract the ESS from
stan_fit
for each parameter of the model.Compute the relative ESS (i.e. the ESS divided by the number of draws).
Check whether for any of the parameter the ESS is lower than
threshold
. If for at least one parameter the relative ESS is below the threshold, a warning is thrown.
Value
A warning message in case of detected problems.
[Package rbmi version 1.2.6 Index]