Calculates the effective sample size based on esr()
.
ess(x, by = "all", as_df = FALSE)
Arguments
- x
An MCMC object.
- by
A string indicating whether to determine by
"term", "parameter" or "all".
- as_df
A flag indicating whether to return the results as a
data frame versus a named list.
Examples
ess(mcmcr_example)
#> [1] 9