Skip to contents

Information and effect size for MaxCombo test

Usage

gs_info_combo(
  enroll_rate = define_enroll_rate(duration = c(2, 2, 10), rate = c(3, 6, 9)),
  fail_rate = define_fail_rate(duration = c(3, 100), fail_rate = log(2)/c(9, 18), hr =
    c(0.9, 0.6), dropout_rate = 0.001),
  ratio = 1,
  event = NULL,
  analysis_time = NULL,
  rho,
  gamma,
  tau = rep(-1, length(rho)),
  approx = "asymptotic"
)

Arguments

enroll_rate

An enroll_rate data frame with or without stratum created by define_enroll_rate().

fail_rate

A fail_rate data frame with or without stratum created by define_fail_rate().

ratio

Experimental:Control randomization ratio (not yet implemented).

event

Targeted events at each analysis.

analysis_time

Minimum time of analysis.

rho

Weighting parameters.

gamma

Weighting parameters.

tau

Weighting parameters.

approx

Approximation method.

Value

A tibble with columns as test index, analysis index, analysis time, sample size, number of events, ahr, delta, sigma2, theta, and statistical information.

Examples

gs_info_combo(rho = c(0, 0.5), gamma = c(0.5, 0), analysis_time = c(12, 24))
#>   test analysis time         n    event       ahr        delta     sigma2
#> 1    1        1   12  89.99998 20.40451 0.7739222 -0.004130002 0.00633611
#> 2    1        2   24 107.99998 49.06966 0.6744758 -0.020174155 0.02617985
#> 3    2        1   12  89.99998 20.40451 0.8182558 -0.008800844 0.04088161
#> 4    2        2   24 107.99998 49.06966 0.7278445 -0.031421204 0.08709509
#>       theta      info     info0
#> 1 0.6518199 0.5702498 0.5733464
#> 2 0.7705987 2.8274229 2.8855151
#> 3 0.2152764 3.6793441 3.6861985
#> 4 0.3607689 9.4062683 9.4737329