Internal function to estimate the bioequivalence test for nsim simulated studies given a sample size n
test_studies(nsim, n, comp, param, param.d, arm_seed, ncores)
a logical matrix of size (nsim) X (number of endpoints + 1) function only replicates test_bioq nsim times.
number of simulated studies
sample size
index comparator
list of parameters (mean,sd,tar)
design parameters
seed for each endpoint to get consistent in simulations across all comparators
number of cores used for the calculation