Skip to content

BCHM

1.00

Clinical Trial Calculation Based on BCHM Design

0packages depend
3.5Kdownloads / year
74.3%test coverage
9/13checks pass

Overview

About
Maintained by J. Jack LeeFirst published 2019-12-203 releasesCRAN page ↗

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

CRAN checks
4NOTE9OK
Failing flavors
  • 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
Slowest check: 1.3 min · r-release-macos-x86_64
Code health
Yes
Tests · ratio 0.05
74.3%
Coverage · measured lines
100%
Documentation · exports
7
Dependencies · direct
Check history
  • NOTE2026-03-10
    7 OK · 7 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
85%
Return-value docs
100%
References docs
0%

Downloads

3.5K
CRAN downloads in the past year
Rank #12,294 · ~10/day · ~293/mo
Daily download trend is not available in this view yet.
28630 days
86890 days
3.5K1 year
Compare downloads with other packages →
Also on115 r2u41 autocran51 c2d4u

Dependencies

Declared dependencies
6 external dependencies (excludes base and recommended)
Depends (2)
R >= 3.5rjags
Imports (6)
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
R 1,010 (70%)Rd 356 (25%)Vignettes 68 (5%)
Code characteristics
Object systems
S36
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

Loading call graph…

Lowest coverage

28 functions
FunctionCycloCoverage
BCHMplot_cluster.default10%
BCHMplot_post_dist.default10%
BCHMplot_post_value.default10%
getVar10%
initData20%
initDataWithWeight20%

People & History

People (0)

Author records are not tracked yet for this package.

Listed in earlier versions (2)
no longer listed · 0.96 to 1.00
no longer listed · 0.96 to 1.00
Package Timeline

3 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 1.00Latest
    2020-06-06 · current release · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.99
    2020-02-19 · diff ↗
  • 0.96
    2019-12-20
  • R
    R 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
Appears in task views
Report a problem with this page →