- Study.A
Study.A, a dataframe representing Study A containing the required columns A (treatment assignment), Y (primary outcome), S (surrogate outcome), and W (baseline covariate of interest). Optionally contains a column delta, which is an indicator for strong surrogacy.
- n.b0
n.b0, sample size in Study B control group
- n.b1
n.b1, sample size in Study B treatment group
- psi
psi, the overall treatment effect you want to detect in Study B
- w.range
w.range, a vector containing the lower and upper limits of the covariate W you plan to have in Study B
- kappa
kappa, the threshold to determine strong surrogacy when the delta columns is not provided in Study.A. Surrogacy is considered sufficiently strong when the estimated PTE with respect to W is greater than kappa.
- desired.power
The desired power in Study B, when you want to calculate required sample size
- iterations
The number of iterations used for generalized cross-validation.