minWO {hce} | R Documentation |
Minimum detectable or WO for alternative hypothesis for given power (no ties)
Description
Minimum detectable or WO for alternative hypothesis for given power (no ties)
Usage
minWO(N, power = 0.5, SD = NULL, k = 0.5, alpha = 0.05, WOnull = 1, digits = 2)
Arguments
N |
a numeric vector of sample size values (two arms combined). |
power |
the given power. The default is 0.5 corresponding to the minimum detectable win odds. A numeric vector of length 1. |
SD |
assumed standard deviation of the win proportion. By default uses the conservative SD. A numeric vector of length 1. |
k |
proportion of active group in the overall sample size. Default is 0.5 (balanced randomization). A numeric vector of length 1. |
alpha |
the significance level for the 2-sided test. Default is 0.05. A numeric vector of length 1. |
WOnull |
the win odds value of the null hypothesis (default is 1). A numeric vector of length 1. |
digits |
precision to use for reporting calculated win odds. |
Value
a data frame containing the calculated WO with input values.
References
Gasparyan SB et al. (2021) "Power and sample size calculation for the win odds test: application to an ordinal endpoint in COVID-19 trials." Journal of Biopharmaceutical Statistics 31.6: 765-787. doi:10.1080/10543406.2021.1968893
See Also
powerWO()
, sizeWO()
for WO power and sample size calculation.
Examples
minWO(N = 100, digits = 5)
minWO(N = 1200, power = 0.9)
minWO(N = 1200, power = 0.9, k = 0.75)