Description Usage Arguments Value Examples
View source: R/helper_functions.R
Compute the summary statistics for the effective sample size (ESS) across posterior samples for possibly many variables
1 | getEffSize(postX)
|
postX |
An array of arbitrary dimension |
Table of summary statistics using the function summary()
.
1 2 3 4 5 6 7 | # ESS for iid simulations:
rand_iid = rnorm(n = 10^4)
getEffSize(rand_iid)
# ESS for several AR(1) simulations with coefficients 0.1, 0.2,...,0.9:
rand_ar1 = sapply(seq(0.1, 0.9, by = 0.1), function(x) arima.sim(n = 10^4, list(ar = x)))
getEffSize(rand_ar1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.