Learn R Programming

SimTOST (version 1.0.2)

test_studies: test_studies

Description

Internal function to estimate the bioequivalence test for nsim simulated studies given a sample size n

Usage

test_studies(nsim, n, comp, param, param.d, arm_seed, ncores)

Value

a logical matrix of size (nsim) X (number of endpoints + 1) function only replicates test_bioq nsim times.

Arguments

nsim

number of simulated studies

n

sample size

comp

index comparator

param

list of parameters (mean,sd,tar)

param.d

design parameters

arm_seed

seed for each endpoint to get consistent in simulations across all comparators

ncores

number of cores used for the calculation