Dotplot of the effective number of independent draws. The default version is the sample size adjusted for autocorrelation. An alternative from the third edition of Bayesian Data Analysis (Gelman, Carlin, Stern, Dunson, Vehtari and Rubin) is provided.
ggs_effective(
D,
family = NA,
greek = FALSE,
version_effective = "spectral",
proportion = TRUE,
plot = TRUE
)
Data frame whith the simulations
Name of the family of parameters to plot, as given by a character vector or a regular expression. A family of parameters is considered to be any group of parameters with the same name but different numerical value between square brackets (as beta[1], beta[2], etc).
Logical value indicating whether parameter labels have to be parsed to get Greek letters. Defaults to false.
Character variable with the name of the version of the calculation to use. Defaults to "spectral", which refers to the simple version estimating the spectral density at frequency zero used in the "coda" package. An alternative version "BDA3" is provided, which refers to the third edition of Bayesian Data Analysis (Gelman, Carlin, Stern, Dunson, Vehtari and Rubin).
Logical value whether to return the proportion of effective independent draws over the total (the default) or the number.
Logical value indicating whether the plot must be returned (the default) or a tidy dataframe with the effective number of samples per Parameter.
A ggplot
object, or a tidy
data frame.
Notice that at least two chains are required.
Fern<U+00E1>ndez-i-Mar<U+00ED>n, Xavier (2016) ggmcmc: Analysis of MCMC Samples and Bayesian Inference. Journal of Statistical Software, 70(9), 1-20. doi:10.18637/jss.v070.i09
Gelman, Carlin, Stern, Dunson, Vehtari and Rubin (2014) Bayesian Data Analysis. 3rd edition. Chapman & Hall/CRC, Boca Raton.
# NOT RUN {
data(linear)
ggs_effective(ggs(s))
# }
Run the code above in your browser using DataLab