Learn R Programming

brms (version 2.19.0)

launch_shinystan.brmsfit: Interface to shinystan

Description

Provide an interface to shinystan for models fitted with brms

Usage

# S3 method for brmsfit
launch_shinystan(object, rstudio = getOption("shinystan.rstudio"), ...)

Value

An S4 shinystan object

Arguments

object

A fitted model object typically of class brmsfit.

rstudio

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

See Also

launch_shinystan

Examples

Run this code
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