Learn R Programming

⚠️There's a newer version (1.5.1.2) of this package.Take me there.

ggmcmc

ggmcmc is a tool for assessing and diagnosing convergence of Markov Chain Monte Carlo simulations, as well as for graphically display results from full MCMC analysis. The package also facilitates the graphical interpretation of models by providing flexible functions to plot the results against observed variables.

To install or update, run:

install.packages("ggmcmc", dependencies=TRUE)

Find out an example at http://xavier-fim.net/packages/ggmcmc and track development at http://github.com/xfim/ggmcmc.

Copy Link

Version

Install

install.packages('ggmcmc')

Monthly Downloads

3,063

Version

1.1

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Xavier i Marín

Last Published

June 28th, 2016

Functions in ggmcmc (1.1)

ci

Calculate Credible Intervals (wide and narrow).
get_family

Subset a ggs object to get only the parameters with a given regular expression.
ggs_caterpillar

Caterpillar plot with thick and thin CI
ggs_autocorrelation

Plot an autocorrelation matrix
ggmcmc

Wrapper function that creates a single pdf file with all plots that ggmcmc can produce.
ac

Calculate the autocorrelation of a single chain, for a specified amount of lags
ggs_chain

Auxiliary function that extracts information from a single chain.
calc_bin

Calculate binwidths by parameter, based on the total number of bins.
ggs_compare_partial

Density plots comparing the distribution of the whole chain with only its last part.
custom.sort

Auxiliary function that sorts Parameter names taking into account numeric values
ggs_histogram

Histograms of the paramters.
ggs_geweke

Dotplot of the Geweke diagnostic, the standard Z-score
ggs_rocplot

Receiver-Operator Characteristic (ROC) plot for models with binary outcomes
ggs_pairs

Create a plot matrix of posterior simulations
ggs_ppsd

Posterior predictive plot comparing the outcome standard deviation vs the distribution of the predicted posterior standard deviations.
ggs_running

Running means of the chains
ggs_ppmean

Posterior predictive plot comparing the outcome mean vs the distribution of the predicted posterior means.
sde0f

Spectral Density Estimate at Zero Frequency.
radon

Simulations of the parameters of a hierarchical model using the radon example in Gelman & Hill (2007).
s.y.rep

Simulations of the posterior predictive distribution of a simple linear regression with fake data.
s

Simulations of the parameters of a simple linear regression with fake data.
s.binary

Simulations of the parameters of a simple linear regression with fake data.
gl_unq

Generate a factor with unequal number of repetitions.
ggs_density

Density plots of the chains
roc_calc

Calculate the ROC curve for a set of observed outcomes and predicted probabilities
y.binary

Values for the observed outcome of a binary logistic regression with fake data.
ggs_crosscorrelation

Plot the Cross-correlation between-chains
y

Values for the observed outcome of a simple linear regression with fake data.
ggs

Import MCMC samples into a ggs object than can be used by all ggs_* graphical functions.
ggs_traceplot

Traceplot of the chains
ggs_Rhat

Dotplot of Potential Scale Reduction Factor (Rhat)
ggs_separation

Separation plot for models with binary response variables