The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

twoCoprimary: Sample Size and Power Calculation for Two Co-Primary Endpoints

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.

Version: 1.0.0
Depends: R (≥ 3.5.0)
Imports: mvtnorm, pbivnorm, fpCompare, stats
Suggests: dplyr, knitr, rmarkdown, testthat (≥ 3.0.0), tibble, tidyr, readr
Published: 2025-11-21
DOI: 10.32614/CRAN.package.twoCoprimary
Author: Gosuke Homma ORCID iD [aut, cre]
Maintainer: Gosuke Homma <my.name.is.gosuke at gmail.com>
BugReports: https://github.com/gosukehommaEX/twoCoprimary/issues
License: MIT + file LICENSE
URL: https://gosukehommaex.github.io/twoCoprimary/, https://github.com/gosukehommaEX/twoCoprimary
NeedsCompilation: no
Language: en-US
Materials: README, NEWS
CRAN checks: twoCoprimary results

Documentation:

Reference manual: twoCoprimary.html , twoCoprimary.pdf
Vignettes: Mixed Continuous and Binary Co-Primary Endpoints (source, R code)
Mixed Count and Continuous Co-Primary Endpoints (source, R code)
Overview of Two Co-Primary Endpoints Analysis (source, R code)
Two Binary Co-Primary Endpoints (Asymptotic Methods) (source, R code)
Two Binary Co-Primary Endpoints (Exact Methods) (source, R code)
Two Continuous Co-Primary Endpoints (source, R code)

Downloads:

Package source: twoCoprimary_1.0.0.tar.gz
Windows binaries: r-devel: twoCoprimary_1.0.0.zip, r-release: not available, r-oldrel: twoCoprimary_1.0.0.zip
macOS binaries: r-release (arm64): twoCoprimary_1.0.0.tgz, r-oldrel (arm64): twoCoprimary_1.0.0.tgz, r-release (x86_64): twoCoprimary_1.0.0.tgz, r-oldrel (x86_64): twoCoprimary_1.0.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=twoCoprimary to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.