Package: bonsaiforest2 0.1.0


Miriam Pedrera Gomez
bonsaiforest2: Flexible Bayesian Shrinkage Models for Subgroup Analysis
An extension of the 'bonsaiforest' package that provides increased flexibility in prior selection and modeling options. It supports four types of endpoints and simplifies the fitting and interpretation of Bayesian models for subgroup analysis. Leveraging 'brms', it distinguishes between prognostic and predictive factors using differential shrinkage priors and generates publication-ready forest plots.
Authors:
bonsaiforest2_0.1.0.tar.gz
bonsaiforest2_0.1.0.zip(r-4.7-any)bonsaiforest2_0.1.0.zip(r-4.6-any)bonsaiforest2_0.1.0.zip(r-4.5-any)
bonsaiforest2_0.1.0.tgz(r-4.6-any)bonsaiforest2_0.1.0.tgz(r-4.5-any)
bonsaiforest2_0.1.0.tar.gz(r-4.7-any)bonsaiforest2_0.1.0.tar.gz(r-4.6-any)
bonsaiforest2_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
bonsaiforest2/json (API)
| # Install 'bonsaiforest2' in R: |
| install.packages('bonsaiforest2', repos = c('https://openpharma.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/openpharma/bonsaiforest2/issues
- shrink_data - Simulated data for shrinkage analysis
Last updated from:18fddc8e2c. Checks:7 ERROR, 2 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | ERROR | 353 | ||
| source / vignettes | OK | 646 | ||
| linux-release | ERROR | 370 | ||
| macos-release | ERROR | 181 | ||
| macos-oldrel | ERROR | 133 | ||
| windows-devel | ERROR | 165 | ||
| windows-release | ERROR | 160 | ||
| windows-oldrel | ERROR | 158 | ||
| wasm-release | OK | 266 |
Exports:combine_summariesestimate_subgroup_effectsfit_brms_modelprepare_formula_modelrun_brms_analysissummary_subgroup_effects
Dependencies:abindbackportsbayesplotBHbridgesamplingbrmsBrobdingnagcallrcheckmateclicodacodetoolscpp11descdigestdistributionaldplyrfarverfuturefuture.applygenericsggdistggplot2ggridgesglobalsgluegridExtragtableinlineisobandlabelinglatticelifecyclelistenvloomagrittrMatrixmatrixStatsmgcvmvtnormnleqslvnlmenumDerivotelparallellypillarpkgbuildpkgconfigplyrposteriorprocessxpspurrrquadprogQuickJSRR6RColorBrewerRcppRcppArmadilloRcppEigenRcppParallelreshape2rlangrstanrstantoolsS7scalessplines2StanHeadersstringistringrsurvivaltensorAtibbletidyrtidyselectutf8vctrsviridisLitewithr
Last update: 2026-09-30
Started: 2025-11-19
Last update: 2026-09-04
Started: 2025-11-17
Last update: 2026-09-01
Started: 2025-11-17
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Combine Multiple Subgroup Summaries for Comparison Plotting | combine_summaries |
| Estimate Marginal Subgroup Treatment Effects | estimate_subgroup_effects |
| Fit a Bayesian Hierarchical Model using brms | fit_brms_model |
| Plot Marginal Subgroup Treatment Effects | plot.subgroup_summary |
| Prepare a Multi-Part brms Formula and Corresponding Data | prepare_formula_model |
| Run a Full Bayesian Hierarchical Model Analysis | run_brms_analysis |
| Simulated data for shrinkage analysis | shrink_data |
| Create a Summary of Marginal Subgroup Treatment Effects | summary_subgroup_effects |