cvcrand
0.1.1Efficient Design and Analysis of Cluster Randomized Trials
Overview
Constrained randomization by Raab and Butcher (2001) doi:10.1002/1097-0258(20010215)20:3%3C351::AID-SIM797%3E3.0.CO;2-C is suitable for cluster randomized trials (CRTs) with a small number of clusters (e.g., 20 or fewer). The procedure of constrained randomization is based on the baseline values of some cluster-level covariates specified. The intervention effect on the individual outcome can then be analyzed through clustered permutation test introduced by Gail, et al. (1996) doi:10.1002/(SICI)1097-0258(19960615)15:11%3C1069::AID-SIM220%3E3.0.CO;2-Q. Motivated from Li, et al. (2016) doi:10.1002/sim.7410, the package performs constrained randomization on the baseline values of cluster-level covariates and clustered permutation test on the individual-level outcomes for cluster randomized trials.
Install
Health
- OK2026-06-0913 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-06-0812 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-05-0213 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-04-2511 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Downloads
Dependencies
Nothing depends on this yet.
Code & Tests
- Cyclomatic complexity
- 69.0 median / 72 max
- Documented parameters
- 100%
Test coverage
Line coverage
–
Expression
–
Tests / Examples
–
Functions
3 3 exported
Complexity
53.7 avg / 72 max
Call network
3 nodes / 0 edges
Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.
Call graph
Open call graph →Lowest coverage
Per-function coverage is not measured for this package yet.
People & History
6 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
- 0.1.1Latest
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 0.1.02020-04-13 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 0.0.42019-03-25 · diff ↗
- 0.0.32019-02-27 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 0.0.22018-04-17 · diff ↗
- 0.0.12017-11-28
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2017-11-28
- Total releases
- 6 / 9 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.4.0
- Bundled data
- 2.0 KB / 2 files
- Download size
- 150 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet