View source: R/truefind_asymptotic.R
| create_sample_size_table | R Documentation |
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
)
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 |
A data.frame with columns: theta, prop_cens, n_required, achieved_power
## Not run:
ss_table <- create_sample_size_table(
theta_values = c(1.5, 1.75, 2.0, 2.5),
prop_cens_values = c(0.2, 0.3, 0.4),
target_power = 0.80
)
print(ss_table)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.