Skip to content

cvcrand

0.1.1

Efficient Design and Analysis of Cluster Randomized Trials

0packages depend
2.9Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Hengshi YuFirst published 2017-11-286 releasesCRAN page ↗

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

CRAN checks
13OK
Slowest check: 3.0 min · r-devel-linux-x86_64-fedora-gcc
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
Yes
Vignettes
No
README
1
Dependencies · direct
Check history
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-05-02
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-25
    11 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Downloads

2.9K
CRAN downloads in the past year
Rank #16,116 · ~8/day · ~238/mo
cvcrand
Daily download trend is not available in this view yet.
28730 days
70290 days
2.9K1 year
Compare downloads with other packages →
Also on103 r2u16 autocran

Dependencies

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

Nothing depends on this yet.

Code & Tests

Code Composition
R 1,861 (67%)Rd 520 (19%)Vignettes 307 (11%)Other 98 (4%)
Code characteristics
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.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

People & History

People (4)
Maintainer (1)
Author, Maintainer
Authors (4)
Author, Maintainer
Author
Release timeline

6 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
  • 0.1.1Latest
    2023-09-17 · current release · diff ↗
  • 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
  • R
    R 4.0.0 released · 2020-04-24
  • 0.1.0
    2020-04-13 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 0.0.4
    2019-03-25 · diff ↗
  • 0.0.3
    2019-02-27 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.0.2
    2018-04-17 · diff ↗
  • 0.0.1
    2017-11-28
  • R
    R 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