Description : to simulate a 2x2 design and return the p-tost for ratio of means (ROM)
test_2x2_rom(
n,
muT,
muR,
SigmaW,
lequi_tol,
uequi_tol,
alpha,
sigmaB,
dropout,
Eper,
Eco,
typey,
adseq,
k,
arm_seed
)
integer number of subjects per sequence
vector mean of endpoints on treatment arm
vector mean of endpoints on reference arm
matrix within subject covar-variance matrix across endpoints
vector lower equivalence tolerance band across endpoints
vector upper equivalence tolerance band across endpoints
vector alpha value across endpoints
double between subject variance (assumed same for all endpoints)
vector of size 2 with dropout proportion per sequence (0,1)
vector of size 2 with period effect on period (0,1)
vector of size 2 with carry over effect of arm c(Reference, Treatment).
vector with positions of primary endpoints
boolean is used a sequential adjustment?
integer minimum number of equivalent endpoints
seed for the simulation
mat(vector) with ptost and other simulated statistics such as mean (mu) and standard deviation(std) per sequence (0,1)-endpoint