Generates a table of required sample sizes for different combinations of true hazard ratios and censoring proportions.
create_sample_size_table(
theta_values,
prop_cens_values,
target_power = 0.8,
hr_threshold = 1.25,
verbose = TRUE
)A data.frame with columns: theta, prop_cens, n_required, achieved_power
Numeric vector. True hazard ratios to evaluate.
Numeric vector. Censoring proportions to evaluate.
Numeric. Target detection probability. Default: 0.80
Numeric. HR threshold. Default: 1.25
Logical. Print progress. Default: TRUE