Skip to content

twoCoprimary

1.0.0

Sample Size and Power Calculation for Two Co-Primary Endpoints

0packages depend
1.3Kdownloads / year
52.8%test coverage
13/13checks pass

Overview

About
Maintained by Gosuke HommaFirst published 2025-11-211 releasesCRAN page ↗GitHub ↗

Comprehensive functions to calculate sample size and power for clinical trials with two co-primary endpoints. The package supports five endpoint combinations: two continuous endpoints (Sozu et al. 2011 doi:10.1080/10543406.2011.551329), two binary endpoints using asymptotic methods (Sozu et al. 2010 doi:10.1002/sim.3972) and exact methods (Homma and Yoshida 2025 doi:10.1177/09622802251368697), mixed continuous and binary endpoints (Sozu et al. 2012 doi:10.1002/bimj.201100221), and mixed count and continuous endpoints (Homma and Yoshida 2024 doi:10.1002/pst.2337). All methods appropriately account for correlation between endpoints and provide both sample size and power calculation capabilities.

Install

Health

CRAN checks
13OK
Slowest check: 7.8 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.19
52.8%
Coverage · measured lines
100%
Documentation · exports
4
Dependencies · direct
Check history
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 480 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 67% structuredCode of conductNoContributing guideNo
Examples that run
96%
Documented parameters
100%
Return-value docs
100%
References docs
65%

Downloads

1.3K
CRAN downloads in the past year
Rank #22,995 · ~4/day · ~111/mo
Daily download trend is not available in this view yet.
15830 days
49890 days
1.3K1 year
Compare downloads with other packages →
Also on47 r2u26 autocran

Repository

Repository
0Stars
0Forks
1Open issues
0Open PRs
0Releases
clinical-trialspower-calculationsample-size-calculationco-primary
Last activity 2026-01-01

Repository practices

Upstream repositoryBeta

4 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/gosukehommaex/twocoprimary on 2026-07-19.

Continuous integration (1)
GitHub Actions
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5.0
Imports (4)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

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

1 release. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.0.0Latest
    2026-03-10 · current release
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2025-11-21
Total releases
1 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.5.0
Download size
221 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →