powerHE: Power and Sample Size Calculations with Hierarchical Endpoints

Calculate sample size or power for hierarchical endpoints. The package can handle any type of outcomes (binary, continuous, count, ordinal, time-to-event) and any number of such endpoints. It allows users to calculate sample size with a given power or to calculate power with a given sample size for hypothesis testing based on win ratios, win odds, net benefit, or DOOR (desirability of outcome ranking) as treatment effect between two groups for hierarchical endpoints. The methods of this package are described further in the paper by Barnhart, H. X. et al. (2024, <doi:10.1080/19466315.2024.2365629>).

Getting started

Package details

AuthorSarah Wu [aut, cre], Dylan Thibault [aut]
MaintainerSarah Wu <O2E@duke.edu>
LicenseGPL (>= 2)
Version1.0.1
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("powerHE")

Try the powerHE package in your browser

Any scripts or data that you put into this service are public.

powerHE documentation built on April 12, 2025, 1:59 a.m.