
Last chance! 50% off unlimited learning
Sale ends in
Provide an interface to shinystan for models fitted with brms
# S3 method for brmsfit
launch_shinystan(object,
rstudio = getOption("shinystan.rstudio"), ...)
A fitted model object typically of class 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)
.
Optional arguments to pass to runApp
An S4 shinystan object
# NOT RUN {
fit <- brm(rating ~ treat + period + carry + (1|subject),
data = inhaler, family = "gaussian")
launch_shinystan(fit)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab