Re-estimate effective sample size from results of compareMCMCs


By default the effective sample sizes (ESS) (and MCMC efficiencies) are estimated from the coda package. This function estimates them either using the same method as coda but allowing higher-order AR models or using the method provided in Stan via package rstan.


updateMCMCcomparisonWithHighOrderESS(mcmcResults, logVars = "",
  includeBurninTime = TRUE, StanESS = FALSE)



An object returned by compareMCMCs


Names of any variables for which ESS should be calculated after log transformation. This is useful if different methods use models in which the same variance component is set up either as standard deviation, variance, or precision. Calculating ESS on a log scale arguably makes these more comparable than converting one into another for comparisons.


(default TRUE) If TRUE, the time spent on burnin (or warmup) is included in the denominator of MCMC efficiency. If false, only the time spent generating samples that are used for estimation of ESS is included.


(default FALSE) If FALSE, ESS will be estimated by the same method as in the code package, but allowing higher-order auto-regressive models to be considered. If TRUE, the method in Stan will be used via the monitor function in package rstan.


A list of the same format as mcmcResults

Want to suggest features or report bugs for Use the GitHub issue tracker. Vote for new features on Trello.

comments powered by Disqus