shinybrms
An R package providing a GUI ('shiny' app) for the R package 'brms'.
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (16.1%) to scientific vocabulary
Keywords
bayes
bayesian
bayesian-data-analysis
bayesian-inference
bayesian-statistics
brms
cmdstanr
gui
mcmc
r
r-package
rstan
shiny
shiny-app
stan
statistical-analysis
statistical-inference
statistical-models
statistics
Last synced: 6 months ago
·
JSON representation
Repository
An R package providing a GUI ('shiny' app) for the R package 'brms'.
Basic Info
- Host: GitHub
- Owner: fweber144
- License: other
- Language: R
- Default Branch: master
- Homepage: https://fweber144.github.io/shinybrms/
- Size: 28.9 MB
Statistics
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 0
- Releases: 15
Topics
bayes
bayesian
bayesian-data-analysis
bayesian-inference
bayesian-statistics
brms
cmdstanr
gui
mcmc
r
r-package
rstan
shiny
shiny-app
stan
statistical-analysis
statistical-inference
statistical-models
statistics
Created almost 6 years ago
· Last pushed about 1 year ago
Metadata Files
Readme
Changelog
License
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# **shinybrms**
## Description
The [R](https://www.R-project.org/) package [**shinybrms**](https://fweber144.github.io/shinybrms/) provides a graphical user interface (GUI) for fitting Bayesian regression models using the R package [**brms**](https://paul-buerkner.github.io/brms/) which in turn relies on [Stan](https://mc-stan.org/). The **shinybrms** GUI is a [**shiny**](https://shiny.rstudio.com/) app.
To get an impression of the **shinybrms** app, have a look at [this page](https://fweber144.github.io/shinybrms/articles/shinybrms.html). The following text explains how to launch the **shinybrms** app (and also how to install it, if necessary).
## Launching the **shinybrms** app
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:
1. Install R (see the [R homepage](https://www.R-project.org/)).
1. Install the R package [**rstan**](https://mc-stan.org/rstan/) (see the ["RStan Getting Started" GitHub page](https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started) for instructions; make sure to use `install.packages("rstan", [...], dependencies = TRUE)` with `[...]` as advised on the "RStan Getting Started" GitHub page).
1. If you want to be able to use the [**cmdstanr**](https://mc-stan.org/cmdstanr/) backend (or if you need it because the **rstan** backend doesn't work as expected), then you need to install **cmdstanr** as well as CmdStan by following the instructions on the [**cmdstanr** homepage](https://mc-stan.org/cmdstanr/). In general, the **rstan** backend should be sufficient, though. In the context of **shinybrms**, the major advantage of the **cmdstanr** backend is a (generally) faster Stan run.
### *With* installation of **shinybrms**
1. Use one of the following approaches to install the R package **shinybrms** either from [CRAN](https://CRAN.R-project.org/package=shinybrms) or from [GitHub](https://github.com/fweber144/shinybrms). The GitHub version might be more recent than the CRAN version, but the CRAN version might be more stable. You also need to decide whether you want to use the example datasets from the R packages [**lme4**](https://CRAN.R-project.org/package=lme4), [**MASS**](https://CRAN.R-project.org/package=MASS), and [**rstanarm**](https://mc-stan.org/rstanarm/) or not.
+ If you want to use the example datasets from the R packages **lme4**, **MASS**, and **rstanarm**, then the R code for installing **shinybrms** from CRAN and GitHub (respectively) is as follows:
* To install **shinybrms** from CRAN:
```{r, eval = FALSE}
install.packages("shinybrms", dependencies = TRUE)
```
* To install **shinybrms** from GitHub:
```{r, eval = FALSE}
if (!requireNamespace("devtools", quietly = TRUE)) {
install.packages("devtools")
}
devtools::install_github("fweber144/shinybrms", dependencies = TRUE)
```
+ If you *don't* want to use the example datasets from the R packages **lme4**, **MASS**, and **rstanarm**, then the R code for installing **shinybrms** from CRAN and GitHub (respectively) is as follows:
* To install **shinybrms** from CRAN:
```{r, eval = FALSE}
install.packages("shinybrms")
```
* To install **shinybrms** from GitHub:
```{r, eval = FALSE}
if (!requireNamespace("devtools", quietly = TRUE)) {
install.packages("devtools")
}
devtools::install_github("fweber144/shinybrms")
```
1. Launch the **shinybrms** app by either running the following R code:
```{r, eval = FALSE}
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](https://www.rstudio.com/)):
```{r, eval = FALSE}
library(shinybrms)
launch_shinybrms(launch.browser = TRUE)
```
### *Without* installation of **shinybrms**
1. Install the R package **brms**. You may use the following R code for this:
```{r, eval = FALSE}
install.packages("brms")
```
1. If you want to use the example datasets from the R packages [**lme4**](https://CRAN.R-project.org/package=lme4), [**MASS**](https://CRAN.R-project.org/package=MASS), and [**rstanarm**](https://mc-stan.org/rstanarm/), you need to install these packages. You may use the following R code for this:
```{r, eval = FALSE}
install.packages(c("lme4", "MASS", "rstanarm"))
```
1. Launch the **shinybrms** app directly [from GitHub](https://github.com/fweber144/shinybrms/tree/master/inst/shinybrms_app) by either running the following R code:
```{r, eval = FALSE}
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](https://www.rstudio.com/)):
```{r, eval = FALSE}
shiny::runGitHub("fweber144/shinybrms",
subdir = "inst/shinybrms_app",
launch.browser = TRUE)
```
Owner
- Name: Frank Weber
- Login: fweber144
- Kind: user
- Website: https://orcid.org/0000-0002-4842-7922
- Repositories: 5
- Profile: https://github.com/fweber144
GitHub Events
Total
Last Year
Committers
Last synced: about 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| fweber144 | f****4@p****m | 1,441 |
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 1
- Total pull requests: 0
- Average time to close issues: 3 days
- Average time to close pull requests: N/A
- Total issue authors: 1
- Total pull request authors: 0
- Average comments per issue: 2.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 0
- Average time to close issues: 3 days
- Average time to close pull requests: N/A
- Issue authors: 1
- Pull request authors: 0
- Average comments per issue: 2.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- mbmriver1 (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 367 last-month
- Total docker downloads: 21,613
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 12
- Total maintainers: 1
cran.r-project.org: shinybrms
Graphical User Interface ('shiny' App) for 'brms'
- Homepage: https://fweber144.github.io/shinybrms/
- Documentation: http://cran.r-project.org/web/packages/shinybrms/shinybrms.pdf
- License: GPL-3 | file LICENSE
-
Latest release: 1.8.0
published over 3 years ago
Rankings
Stargazers count: 18.7%
Forks count: 28.8%
Average: 29.1%
Dependent packages count: 29.8%
Downloads: 32.7%
Dependent repos count: 35.5%
Maintainers (1)
Last synced:
6 months ago
Dependencies
DESCRIPTION
cran
- R >= 3.6.0 depends
- brms >= 2.16.0 imports
- rlang * imports
- rstan >= 2.19.3 imports
- shiny >= 1.7.0 imports
- MASS * suggests
- callr >= 3.4.0 suggests
- cmdstanr * suggests
- ggplot2 * suggests
- lme4 * suggests
- rstanarm * suggests
- shinystan >= 2.4.0 suggests
- shinytest * suggests
- testthat * suggests
.github/workflows/static.yml
actions
- actions/checkout v4 composite
- actions/configure-pages v5 composite
- actions/deploy-pages v4 composite
- actions/upload-pages-artifact v3 composite