Skip to contents

Generates a table of required sample sizes for different combinations of true hazard ratios and censoring proportions.

Usage

create_sample_size_table(
  theta_values,
  prop_cens_values,
  target_power = 0.8,
  hr_threshold = 1.25,
  verbose = TRUE
)

Arguments

theta_values

Numeric vector. True hazard ratios to evaluate.

prop_cens_values

Numeric vector. Censoring proportions to evaluate.

target_power

Numeric. Target detection probability. Default: 0.80

hr_threshold

Numeric. HR threshold. Default: 1.25

verbose

Logical. Print progress. Default: TRUE

Value

A data.frame with columns: theta, prop_cens, n_required, achieved_power