RepositoryR
stan-dev

stan-dev/shinystan

shinystan R package and ShinyStan GUI

201stars
47forks
23issues
1views

ShinyStan

CRAN_Status_Badge RStudio CRAN Mirror Downloads Codecov

ShinyStan provides immediate, informative, customizable visual and numerical summaries of model parameters and convergence diagnostics for MCMC simulations. The ShinyStan interface is coded primarily in R using the Shiny web application framework and is available via the shinystan R package.

Resources

Installation

  • Install the latest release from CRAN:
install.packages("shinystan")
  • Install the development version from GitHub (requires devtools package):
if (!require("devtools")) {
  install.packages("devtools")
}
devtools::install_github("stan-dev/shinystan", build_vignettes = TRUE)

Demo

After installing run

library("shinystan")
launch_shinystan_demo()

Screenshots

<img src=https://github.com/stan-dev/shinystan/raw/master/images/home.png width=19% /><img src=https://github.com/stan-dev/shinystan/raw/master/images/explore.png width=24.5% /><img src=https://github.com/stan-dev/shinystan/raw/master/images/diagnose.png width=24.5% />

About ShinyStan

Applied Bayesian data analysis is primarily implemented through the MCMC algorithms offered by various software packages. When analyzing a posterior sample obtained by one of these algorithms the first step is to check for signs that the chains have converged to the target distribution and also for signs that the algorithm might require tuning or might be ill-suited for the given model. There may also be theoretical problems or practical inefficiencies with the specification of the model.

ShinyStan provides interactive plots and tables helpful for analyzing a posterior sample, with particular attention to identifying potential problems with the performance of the MCMC algorithm or the specification of the model. ShinyStan is powered by RStudio's Shiny web application framework and works with the output of MCMC programs written in any programming language (and has extended functionality for models fit using RStan and the No-U-Turn sampler).

Saving and deploying (sharing)

The shinystan package allows you to store the basic components of an entire project (code, posterior samples, graphs, tables, notes) in a single object. Users can save many of the plots as ggplot2 objects for further customization and easy integration in reports or post-processing for publication.

shinystan also provides the deploy_shinystan function, which lets you easily deploy your own ShinyStan apps online using RStudio's ShinyApps service for any of your models. Each of your apps (each of your models) will have a unique url and is compatible with Safari, Firefox, Chrome, and most other browsers.

Licensing

The shinystan R package and ShinyStan interface are open source licensed under the GNU Public License, version 3 (GPLv3).

Contributing

Contributions are welcome. All contributions must follow the Stan AI Contribution Policy.

Similar Projects

Discover other similar projects and AI models.

RepositoryR
stan-dev/rstan

RStan, the R interface to Stan

1.1k
Nov 23, 2026
RepositoryC++
stan-dev/stan

Stan development repository. The master branch contains the current release. The develop branch contains the latest stable development. See the Developer Process Wiki for details.

2.8k
Dec 1, 2026
RepositoryR
stan-dev/loo

loo R package for approximate leave-one-out cross-validation (LOO-CV) and Pareto smoothed importance sampling (PSIS)

160
Nov 27, 2026
RepositoryR
paul-buerkner/brms

brms R package for Bayesian generalized multivariate non-linear multilevel models using Stan

1.4k
Nov 27, 2026
RepositoryR
xfim/ggmcmc

Graphical tools for analyzing Markov Chain Monte Carlo simulations from Bayesian inference

113
Oct 2, 2025
RepositoryTeX
avehtari/BDA_course_Aalto

Bayesian Data Analysis course at Aalto

2.3k
Nov 24, 2026
RepositoryJulia
TuringLang/Turing.jl

Bayesian inference with probabilistic programming.

2.3k
Nov 24, 2026
RepositoryJulia
tpapp/DynamicHMC.jl

Implementation of robust dynamic Hamiltonian Monte Carlo methods (NUTS) in Julia.

253
Oct 29, 2026
RepositoryJulia
bat/BAT.jl

A Bayesian Analysis Toolkit in Julia

229
Nov 20, 2026