rstanarm (version 2.13.1)

shinystan: Using the ShinyStan GUI with rstanarm models

Description

The ShinyStan interface provides visual and numerical summaries of model parameters and convergence diagnostics.

Arguments

Faster launch times

For some rstanarm models ShinyStan may take a very long time to launch. If this is the case with one of your models you may be able to speed up launch_shinystan in one of several ways:

Details

The launch_shinystan function will accept a stanreg object as input. Currently, almost any model fit using one of rstanarm's model-fitting functions can be used with ShinyStan. The only exception is that ShinyStan does not currently support rstanarm models fit using algorithm='optimizing'. See the shinystan package documentation for more information.

Examples

Run this code
## Not run: 
# if (!exists("example_model")) example(example_model) 
# 
# # Launch the ShinyStan app without saving the resulting shinystan object
# if (interactive()) launch_shinystan(example_model)
# 
# # Launch the ShinyStan app (saving resulting shinystan object as sso)
# if (interactive()) sso <- launch_shinystan(example_model)
# 
# # First create shinystan object then call launch_shinystan
# sso <- shinystan::as.shinystan(example_model)
# if (interactive()) launch_shinystan(sso)
# 
# # Prevent ShinyStan from preparing graphical posterior predictive checks that
# # can be time consuming. example_model is small enough that it won't matter
# # much here but in general this can help speed up launch_shinystan
# sso <- shinystan::as.shinystan(example_model, ppd = FALSE)
# if (interactive()) launch_shinystan(sso)
# ## End(Not run)


Run the code above in your browser using DataLab