# Re-estimate effective sample size from results of compareMCMCs

### Description

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.

### Usage

1 2 |

### Arguments

`mcmcResults` |
An object returned by |

`logVars` |
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. |

`includeBurninTime` |
(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. |

`StanESS` |
(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 |

### Value

A list of the same format as `mcmcResults`