powered by
Sample size calculation for the win ratio test (with WR = 1 null hypothesis)
sizeWR(WR, power, WO = NULL, Pties = NULL, k = 0.5, alpha = 0.05)
a data frame containing the sample size with input values.
a numeric vector of win odds values.
the given power. A numeric vector of length 1.
win odds. Should be specified only if Pties is not specified. A numeric vector of length 1.
Pties
probability of ties. A numeric vector of length 1.
proportion of active group in the overall sample size. Default is 0.5 (balanced randomization). A numeric vector of length 1.
the significance level for the 2-sided test. Default is 0.05. A numeric vector of length 1.
Yu RX, Ganju J. (2022) "Sample size formula for a win ratio endpoint." Statistics in Medicine, 41.6: 950-63. doi:10.1002/sim.9297.
sizeWO() for WO sample size calculation.
sizeWO()
sizeWR(WR = 1.35, Pties = 0.125, power = 0.8) sizeWR(WR = 1.35, WO = 1.3, power = seq(0.5, 0.9, 0.05))
Run the code above in your browser using DataLab