knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The R package shinybrms provides a graphical user interface (GUI) for fitting Bayesian regression models using the R package brms which in turn relies on Stan. The shinybrms GUI is a shiny app.
To get an impression of the shinybrms app, have a look at this page. The following text explains how to launch the shinybrms app (and also how to install it, if necessary).
The following two sections describe two ways for launching the shinybrms app, either with or without the installation of shinybrms. The former is recommended as it offers all advantages that R packages have (e.g., offline usage). For both ways, you need to perform the following steps first:
install.packages("rstan", [...], dependencies = TRUE)
with [...]
as advised on the "RStan Getting Started" GitHub page).r
install.packages("shinybrms", dependencies = TRUE)
r
if (!requireNamespace("devtools", quietly = TRUE)) {
install.packages("devtools")
}
devtools::install_github("fweber144/shinybrms", dependencies = TRUE)
r
install.packages("shinybrms")
r
if (!requireNamespace("devtools", quietly = TRUE)) {
install.packages("devtools")
}
devtools::install_github("fweber144/shinybrms")
r
library(shinybrms)
launch_shinybrms()
or this R code which ensures that the app opens up in the default web browser (helpful, e.g., if you are using RStudio):
r
library(shinybrms)
launch_shinybrms(launch.browser = TRUE)
r
install.packages("brms")
r
install.packages(c("lme4", "MASS", "rstanarm"))
r
shiny::runGitHub("fweber144/shinybrms",
subdir = "inst/shinybrms_app")
or this R code which ensures that the app opens up in the default web browser (helpful, e.g., if you are using RStudio):
r
shiny::runGitHub("fweber144/shinybrms",
subdir = "inst/shinybrms_app",
launch.browser = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.