Learn R Programming

rstanarm (version 2.10.1)

rstanarm-plots: Plots for rstanarm models

Description

Models fit using algorithm='sampling', "meanfield", or "fullrank" are compatible with a variety of plotting functions from the rstan package. Each function returns at least one ggplot object that can be customized further using the ggplot2 package. The plotting functions described here can be called using the plot method for stanreg objects without loading the rstan package. For example usage see plot.stanreg.

Arguments

Plotting functions

Posterior intervals and point estimates
stan_plot
Traceplots
stan_trace
Histograms
stan_hist
Kernel density estimates
stan_dens
Scatterplots
stan_scat
Diagnostics for Hamiltonian Monte Carlo and the No-U-Turn Sampler
stan_diag
Rhat
stan_rhat
Ratio of effective sample size to total posterior sample size
stan_ess
Ratio of Monte Carlo standard error to posterior standard deviation
stan_mcse
Autocorrelation
stan_ac

See Also

plot.stanreg for how to call the plot method, shinystan for interactive model exploration, pp_check for graphical posterior predicive checking.

Examples

Run this code
# See examples at help("plot.stanreg", package = "rstanarm")

Run the code above in your browser using DataLab