Skip to contents

Sets the arguments of design_tte that are specific to a time-to-event endpoint: the effect measure, the milestone time and the conduct of the study and of the future study. The specification must have been started by qdm_endpoint("tte"). The arguments are checked when the design is built, by design_tte. All the arguments of the step are set together: an argument that is not given returns to the default, so qdm_tte(x, conduct = ...) also removes milestone and effect of x.

Usage

qdm_tte(
  x,
  milestone = NULL,
  effect = NULL,
  conduct = NULL,
  conduct_future = NULL
)

Arguments

x

A design specification started by qdm_endpoint("tte"), or a time-to-event design, which is converted to the specification that builds it.

milestone

Milestone time \(t_0\) for effect = "milestone", or NULL.

effect

Effect measure, "milestone" or "hazard_ratio", or NULL for the default of design_tte ("milestone").

conduct

Conduct of the study, created by conduct_tte, or NULL.

conduct_future

Conduct of the future study for a predictive criterion, created by conduct_tte, or NULL for the default of design_tte (conduct).

Value

A design specification: x, or the specification of the design x, with the arguments set.

Examples

qdm_endpoint("tte") |>
  qdm_sample_size(n_t = 20, n_c = 20) |>
  qdm_prior(prior_t = prior_gamma(0.1, 1),
            prior_c = prior_gamma(0.1, 1)) |>
  qdm_criterion(criterion_posterior(theta_tv = 0.15, theta_mav = 0,
                                    gamma_go = 0.6, gamma_nogo = 0.8)) |>
  qdm_tte(milestone = 3,
          conduct = conduct_tte(accrual_time = c(0, 5, 10, 15),
                                accrual_rate = c(0.4, 2, 4.5),
                                dropout_hazard = 0.00226,
                                cut_time = 15.44)) |>
  qdm_build()
#> Design: one time-to-event endpoint (milestone survival at t = 3)
#>   Treatment: n = 20, prior Gamma(shape = 0.1, rate = 1)
#>   Control: concurrent, n = 20, prior Gamma(shape = 0.1, rate = 1)
#> Posterior probability criterion
#>   Go:   P(theta > 0.15 | data) >= 0.6
#>   NoGo: P(theta <= 0 | data) >= 0.8
#> Probabilities: numerical integration
#> Conduct of the study (operating characteristics):
#>   Enrollment: piecewise uniform on (0, 5, 10, 15) with rates (0.4, 2.0, 4.5)
#>   Dropout: hazard 0.00226
#>   Analysis: at time 15.44