R/sampleSize_Mielke.R
sampleSize_Mielke.Rd
Estimates the required sample size to achieve a specified power level for multiple hypothesis testing, using the approach described by Mielke et al. (2018). This function is particularly useful for bioequivalence or biosimilar studies with multiple correlated endpoints, where a minimum number of endpoints must meet equivalence criteria.
sampleSize_Mielke(
power,
Nmax,
m,
k,
rho,
sigma,
true.diff,
equi.tol,
design,
alpha,
adjust = "no",
seed = NULL,
nsim = 10000
)
Numeric. Desired statistical power.
Integer. Maximum allowable sample size.
Integer. Total number of endpoints.
Integer. Number of endpoints that must meet the success criteria for overall study success.
Numeric. Constant correlation coefficient among endpoints.
Numeric or vector. Standard deviation of each endpoint. If a single value is provided, it is assumed to be constant across all endpoints. In a 2x2 crossover design, this is the within-subject standard deviation; in a parallel design, it represents the treatment group’s standard deviation, assumed to be the same for both test and reference.
Numeric or vector. Assumed true difference between test and reference for each endpoint. If a single value is provided, it is applied uniformly across all endpoints.
Numeric. Equivalence margin; the equivalence interval is defined as (-equi.tol, +equi.tol).
Character. Study design, either "22co" for a 2x2 crossover design or "parallel" for a parallel groups design.
Numeric. Significance level for the hypothesis test.
Character. Method for multiplicity adjustment; options are "no" (no adjustment), "bon" (Bonferroni adjustment), and "k" (k-adjustment).
Integer. Random seed for reproducibility.
Integer. Number of simulations to run for power estimation (default: 10,000).
A named vector containing:
Achieved power with the estimated sample size.
Required sample size per sequence to achieve the target power.
This function uses the method proposed by Mielke et al. (2018) to estimate the sample size required to achieve the desired power level in studies with multiple correlated endpoints. The function iteratively increases sample size until the target power is reached or the maximum allowable sample size (Nmax) is exceeded. The approach accounts for endpoint correlation and supports adjustments for multiple testing using various correction methods.
Mielke, J., Jones, B., Jilma, B. & König, F. Sample Size for Multiple Hypothesis Testing in Biosimilar Development. Statistics in Biopharmaceutical Research 10, 39–49 (2018).