crt2power
1.2.2Designing Cluster-Randomized Trials with Two Continuous Co-Primary Outcomes
Overview
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
- 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
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 0%
Downloads
Repository
Repository practices
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.
Dependencies
Nothing depends on this yet.
Code & Tests
- 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
Call graph
Open call graph →Lowest coverage
17 functions| Function | Cyclo | Coverage |
|---|---|---|
| run_crt2_design exp | 33 | 7% |
| calc_pwr_conj_test exp | 26 | 65% |
| calc_m_disj_2dftest exp | 10 | 74% |
| calc_pwr_single_1dftest exp | 10 | 75% |
| calc_pwr_comb_outcome exp | 10 | 76% |
| calc_K_comb_outcome exp | 13 | 77% |
People & History
5 releases. Pick two to compare their code metrics. R releases are shown for context.
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