BCHM
1.00Clinical Trial Calculation Based on BCHM Design
Overview
Users can estimate the treatment effect for multiple subgroups basket trials based on the Bayesian Cluster Hierarchical Model (BCHM). In this model, a Bayesian non-parametric method is applied to dynamically calculate the number of clusters by conducting the multiple cluster classification based on subgroup outcomes. Hierarchical model is used to compute the posterior probability of treatment effect with the borrowing strength determined by the Bayesian non-parametric clustering and the similarities between subgroups. To use this package, 'JAGS' software and 'rjags' package are required, and users need to pre-install them.
Install
Health
- NOTE r-devel-linux-x86_64-debian-clang
- NOTE r-devel-linux-x86_64-debian-gcc
- NOTE r-devel-linux-x86_64-fedora-clang
- NOTE r-devel-linux-x86_64-fedora-gcc
- NOTE2026-03-107 OK · 7 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 85%
- Return-value docs
- 100%
- References docs
- 0%
Downloads
Dependencies
Nothing depends on this yet.
Code & Tests
- Cyclomatic complexity
- 1.0 median / 10 max
- System requirements
- 1 external
Test coverage
Line coverage
74%
Expression
71.9%
Tests / Examples
74.3% / 74% ex
Functions
28 4 exported
Complexity
2.5 avg / 10 max
Call network
28 nodes / 13 edges
Call graph
Open call graph →Lowest coverage
28 functions| Function | Cyclo | Coverage |
|---|---|---|
| BCHMplot_cluster.default | 1 | 0% |
| BCHMplot_post_dist.default | 1 | 0% |
| BCHMplot_post_value.default | 1 | 0% |
| getVar | 1 | 0% |
| initData | 2 | 0% |
| initDataWithWeight | 2 | 0% |
People & History
Author records are not tracked yet for this package.
3 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 1.00Latest
- RR 4.0.0 released · 2020-04-24
- 0.992020-02-19 · diff ↗
- 0.962019-12-20
- RR 3.6.0 released · 2019-04-26
Package metadata
- First published
- 2019-12-20
- Total releases
- 3 / 7 yrs
- License
- LGPL-2 OSI
- Minimum R
- ≥ 3.5
- Download size
- 307 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet