sPwRholmye {triggerstrategy} | R Documentation |
Power of testing the secondary hypothesis using Holm-Ye
Description
This function computes the power of testing the secondary hypothesis using Holm-Ye
Usage
sPwRholmye(
alpha,
alpha0,
t0,
t1,
tc0 = t0,
tc1 = t1,
delta0,
delta1,
rho = 0,
iuse0 = 1,
iuse1 = 1,
phi0 = rep(1, length(alpha)),
phi1 = rep(1, length(alpha))
)
Arguments
alpha |
a number shows the overall error rate |
alpha0 |
a number shows the error rate assigned to the primary endpoint initially |
t0 |
a vector shows the information times of the primary endpoint |
t1 |
a vector shows the information times of the secondary endpoint |
tc0 |
a vector shows the calendar times of the primary endpoint |
tc1 |
a vector shows the calendar times of the secondary endpoint |
delta0 |
a value of delta for hypothesis H0 |
delta1 |
a value of delta for hypothesis H1 |
rho |
a number shows the correlation between the primary and secondary endpoints |
iuse0 |
an integer shows the type of group sequential boundaries used for the primary endpoint |
iuse1 |
an integer shows the type of group sequential boundaries used for the secondary endpoint |
phi0 |
a parameter for the power family or the HSD gamma family for the primary endpoint |
phi1 |
a parameter for the power family or the HSD gamma family for the secondary endpoint |
Value
a number shows the statistical power of rejecting H1
Examples
alpha <- 0.025
alpha0 <- 0.01
iuse0 <- 4
iuse1 <- 4
phi0 <- -4
phi1 <- -4
tc0 <- c(3,6,9,12,18)
tc1 <- c(6,12,18,36)
t0 <- (1:5)/5
t1 <- (1:4)/4
rho <- 0.5
delta0 <- 1
delta1 <- 3
sPwRholmye(alpha=alpha, alpha0=alpha0,
t0=t0, t1=t1, tc0=tc0, tc1=tc1,
delta0=delta0, delta1=delta1,
rho=rho, iuse0=iuse0, iuse1=iuse1,
phi0=phi0, phi1=phi1)