Skip to content

crt2power

1.2.2

Designing Cluster-Randomized Trials with Two Continuous Co-Primary Outcomes

0packages depend
3.9Kdownloads / year
60.1%test coverage
13/13checks pass

Overview

About
Maintained by Melody OwenFirst published 2024-06-205 releasesCRAN page ↗GitHub ↗

Provides methods for powering cluster-randomized trials with two continuous co-primary outcomes using five key design techniques. Includes functions for calculating required sample size and statistical power. For more details on methodology, see Owen et al. (2025) doi:10.1002/sim.70015, Yang et al. (2022) doi:10.1111/biom.13692, Pocock et al. (1987) doi:10.2307/2531989, Vickerstaff et al. (2019) doi:10.1186/s12874-019-0754-4, and Li et al. (2020) doi:10.1111/biom.13212.

Install

Health

CRAN checks
13OK
Slowest check: 15.3 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.86
60.1%
Coverage · measured lines
100%
Documentation · exports
11
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

Documentation

Documentation
READMEYes · 849 wordsVignettesNopkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
0%

Downloads

3.9K
CRAN downloads in the past year
Rank #19,579 · ~11/day · ~327/mo
Daily download trend is not available in this view yet.
19830 days
61490 days
3.9K1 year
Compare downloads with other packages →
Also on129 r2u25 autocran

Repository

Repository
0Stars
0Forks
0Open issues
0Open PRs
0Releases
Last activity 2025-12-19

Repository practices

Upstream repositoryBeta

1 development-tooling and community-health practice detected across 1 family in the upstream repository

Checks run against github.com/melodyaowen/crt2power on 2026-07-19.

Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
11 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.3
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
R 5,157 (84%)Rd 1,006 (16%)
Code characteristics
Cyclomatic complexity
12.0 median / 33 max
Test cases
98 / 0.86 per code line

Test coverage

Line coverage

60%

Expression

69.3%

Tests / Examples

60.1% / 54% ex

Functions

17 17 exported

Complexity

13.8 avg / 33 max

Call network

17 nodes / 30 edges

Loading call graph…

Lowest coverage

17 functions
FunctionCycloCoverage
run_crt2_design exp337%
calc_pwr_conj_test exp2665%
calc_m_disj_2dftest exp1074%
calc_pwr_single_1dftest exp1075%
calc_pwr_comb_outcome exp1076%
calc_K_comb_outcome exp1377%

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

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

  • R
    R 4.6.0 released · 2026-04-24
  • 1.2.2Latest
    2025-11-12 · current release · diff ↗
  • 1.2.1
    2025-05-07 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.2.0
    2025-03-13 · diff ↗
  • 1.1.0
    2024-09-23 · diff ↗
  • 1.0.0
    2024-06-20
  • R
    R 4.4.0 released · 2024-04-24

Package metadata

First published
2024-06-20
Total releases
5 / 2 yrs
License
GPL-3 OSI
Minimum R
≥ 4.3
Download size
24 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →