test_2x2_rom.Rd
Simulates a two-sequence, two-period (2x2) crossover design and evaluate equivalence for the 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
A numeric matrix containing the simulated hypothesis test results. The first column represents the overall equivalence decision, where 1 indicates success and 0 indicates failure. The subsequent columns contain the hypothesis test results for each endpoint, followed by mean estimates for the reference and treatment groups, and standard deviations for the reference and treatment groups.