alpha=0.025
beta0=0.10
beta1=0.20
effsz0=0.33
effsz1=0.30
szratio=1
t0=c(0.5,0.9,1)
t1=c(0.6,1)
tc0=c(1,2)
tc1=c(1,2,3)
rho=0
iuse0=1
iuse1=2
phi0=-4
phi1=1
usingRhoForBoundary=FALSE
method="trigger"
method="bonferroni"
method="holm"
method="maurer-bretz"
lower = c(180,0.005)
upper = c(240, alpha-0.005)
maxiter = 1 # Increase this number for more precise results
run = 1 # Increase this number for more precise results
seed = 123
result <- solveAlphaXsampleSizeGA(alpha=alpha,
beta0=beta0, beta1=beta1,
effsz0=effsz0, effsz1=effsz1,
szratio=szratio,
t0=t0, t1=t1, tc0=tc0, tc1=tc1,
rho=rho, iuse0=iuse0, iuse1=iuse1,
phi0=phi0, phi1=phi1,
usingRhoForBoundary=usingRhoForBoundary,
method=method,
lower = lower, upper = upper,
maxiter = maxiter,
run = run,
seed = seed)
print(result)
Run the code above in your browser using DataLab