https://github.com/insightsengineering/teal.modules.bsafe
Teal modules for bsafe
https://github.com/insightsengineering/teal.modules.bsafe
clinical-trials r
Last synced: 8 months ago
JSON representation
Teal modules for bsafe
- Host: GitHub
- URL: https://github.com/insightsengineering/teal.modules.bsafe
- Owner: insightsengineering
- License: other
- Created: 2023-08-04T11:18:51.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-08T05:45:34.000Z (about 1 year ago)
- Last Synced: 2025-05-19T23:43:48.411Z (about 1 year ago)
- Topics: clinical-trials, r
- Language: R
- Homepage: https://insightsengineering.github.io/teal.modules.bsafe/
- Size: 10.1 MB
- Stars: 1
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- License: LICENSE
Awesome Lists containing this project
README
# B-SAFE Shiny Module
[](https://insightsengineering.github.io/teal.modules.bsafe/)
[](https://insightsengineering.github.io/teal.modules.bsafe/main-unit-test-report)
[](https://insightsengineering.github.io/teal.modules.bsafe/main/coverage-report/)
[](https://www.repostatus.org/#active)
[](https://github.com/insightsengineering/teal.modules.bsafe/tree/main)
## Installation
``` r
install.packages("remotes")
install.packages("teal")
remotes::install_github("https://github.com/insightsengineering/bsafe")
remotes::install_github("https://github.com/insightsengineering/teal.modules.bsafe")
```
## Usage
``` r
library(teal)
library(bsafe)
library(teal.modules.bsafe)
data <- teal.modules.bsafe::test_data
data <- teal.data::teal_data(
bsafe_data = data,
code = expression({
bsafe_data <- teal.modules.bsafe::test_data
})
) |>
teal.data::verify()
app <- teal::init(
data = data,
modules = list(
teal.modules.bsafe:::tm_bsafe(
label = "teal.modules.bsafe",
dataset_name = "bsafe_data"
)
),
header = "DaVinci test of bsafe as teal module"
)
shiny::shinyApp(app$ui, app$server)
```
## Further Information
B-SAFE is an R-Shiny app. The app is an innovate software tool for statistical analysis of adverse event summary data. The app can enhance the descriptive analysis for a current trial with historical information on one or more treatment arms for increased precision. It features a Bayesian Meta-Analytic Predictive (MAP) Prior approach and a robust extension, which incorporates historical information for safety analyses on adverse events into safety analyses for a new trial. The use of historical information has been used for efficacy analyses in the past and now being extended to safety analyses.
[Manual](https://github.com/insightsengineering/teal.modules.bsafe/blob/main/inst/www/manual.pdf)
[Stats Plan](https://github.com/insightsengineering/teal.modules.bsafe/blob/main/inst/www/statsplan.pdf)
[Test plan](https://github.com/insightsengineering/teal.modules.bsafe/blob/main/inst/www/test_validate_review.pdf)