grouprar
Group Response Adaptive Randomization for Clinical Trials
Description
Implement group response-adaptive randomization procedures, which also integrates standard non-group response-adaptive randomization methods as specialized instances. It is also uniquely capable of managing complex scenarios, including those with delayed and missing responses, thereby expanding its utility in real-world applications. This package offers 16 functions for simulating a variety of response adaptive randomization procedures. These functions are essential for guiding the selection of statistical methods in clinical trials, providing a flexible and effective approach to trial design. Some of the detailed methodologies and algorithms used in this package, please refer to the following references: LJ Wei (1979) <doi:10.1214/aos/1176344614> L. J. WEI and S. DURHAM (1978) <doi:10.1080/01621459.1978.10480109> Durham, S. D., FlournoY, N. AND LI, W. (1998) <doi:10.2307/3315771> Ivanova, A., Rosenberger, W. F., Durham, S. D. and Flournoy, N. (2000) <https://www.jstor.org/stable/25053121> Bai Z D, Hu F, Shen L. (2002) <doi:10.1006/jmva.2001.1987> Ivanova, A. (2003) <doi:10.1007/s001840200220> Hu, F., & Zhang, L. X. (2004) <doi:10.1214/aos/1079120137> Hu, F., & Rosenberger, W. F. (2006, ISBN:978-0-471-65396-7). Zhang, L. X., Chan, W. S., Cheung, S. H., & Hu, F. (2007) <https://www.jstor.org/stable/26432528> Zhang, L., & Rosenberger, W. F. (2006) <doi:10.1111/j.1541-0420.2005.00496.x> Hu, F., Zhang, L. X., Cheung, S. H., & Chan, W. S. (2008) <doi:10.1002/cjs.5550360404>.
Downloads
256
Last 30 days
19246th
605
Last 90 days
2.2K
Last year
Trend: +70.7% (30d vs prior 30d)
24
Last 30 days
115
Last 90 days
403
Last year
Trend: -40% (30d vs prior 30d)
3
Last 7 days
9
Last 30 days
0
All-time
autoCRAN-only: this name is served only by autoCRAN, so the count is exact.
CRAN Check Status
Show all 13 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | OK |
| r-devel-linux-x86_64-fedora-clang | NOTE |
| r-devel-linux-x86_64-fedora-gcc | NOTE |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | OK |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check details (2 non-OK)
dependencies in R code
Namespaces in Imports field not imported from: ‘ggplot2’ ‘gridExtra’ ‘methods’ ‘tidyr’ All declared Imports should be used.
dependencies in R code
Namespaces in Imports field not imported from: ‘ggplot2’ ‘gridExtra’ ‘methods’ ‘tidyr’ All declared Imports should be used.
Check History
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
dependencies in R code
Namespaces in Imports field not imported from: ‘ggplot2’ ‘gridExtra’ ‘methods’ ‘tidyr’ All declared Imports should be used.
dependencies in R code
Namespaces in Imports field not imported from: ‘ggplot2’ ‘gridExtra’ ‘methods’ ‘tidyr’ All declared Imports should be used.
Code & tests
Open call graph →Line coverage
–
Expression
–
Tests / Examples
–
Functions
38 16 exported
Complexity
6.6 avg / 17 max
Call network
38 nodes / 93 edges
Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.
Lowest coverage
Per-function coverage is not measured for this package yet.
Code
Structure
Lines of code
3,173
Files
22
Compiled share
0%
Has compiled src
No
Language breakdown
API
Exported functions
16
Internal functions
22
Recent export changes
Testing & CI
Has tests
No
Test-to-code ratio
0.00
testthat edition
–
CI present
No
CI type
[]
PR gated
No
Docs
Return-value doc rate
100%
\dontrun example ratio
0%
Roxygen coverage
100%
Has pkgdown
No
NEWS present
No
Health & Security signals
Informational signals; not verdicts.
on.exit coverage
–
Unsafe pattern score
0
Dep constraint coverage
42.9%
Secret pattern count
0
Bundled 3rd-party code
2 items
Portability & License
Min R version
3.6.0
System requirements
–
C++ standard
–
License
GPL (>= 2)
License flags
SPDX valid, OSI approved
History
Versions
1
First release
2024-03-04
Latest release
2024-03-04
Avg cadence
–
Cold removal rate
–
Dep drift
0
Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.
Dependency Network
Version History
1 trackedR Observatory began tracking this package on Mar 10, 2026; it first appeared on CRAN Mar 4, 2024. Releases before tracking aren’t shown.