powered by
Provide an interface to shinystan for models fitted with brms
launch_shinystan.brmsfit(object, rstudio = getOption("shinystan.rstudio"), ...)
An S4 shinystan object
A fitted model object typically of class brmsfit.
brmsfit
Only relevant for RStudio users. The default (rstudio=FALSE) is to launch the app in the default web browser rather than RStudio's pop-up Viewer. Users can change the default to TRUE by setting the global option options(shinystan.rstudio = TRUE).
rstudio=FALSE
TRUE
options(shinystan.rstudio = TRUE)
Optional arguments to pass to runApp
runApp
launch_shinystan
if (FALSE) { fit <- brm(rating ~ treat + period + carry + (1|subject), data = inhaler, family = "gaussian") launch_shinystan(fit) }
Run the code above in your browser using DataLab