Skip to contents

Sets the arguments of the design_*() function that choose how the probabilities of the regions are computed. Each endpoint has only some of them: method for one or two continuous endpoints, nMC for one continuous endpoint, two binary endpoints, two continuous endpoints and a time-to-event endpoint, and enumerate for two binary endpoints. An argument that the design_*() function of the endpoint does not have is an error. The values are checked when the design is built, by the design_*() function. All the arguments of the step are set together: an argument that is not given returns to the default, so qdm_computation(x, nMC = 5000) also returns method to its default.

Usage

qdm_computation(x, method = NULL, nMC = NULL, enumerate = NULL)

Arguments

x

A design specification started by qdm_endpoint, or a design, which is converted to the specification that builds it.

method

Method of computation of the probabilities: "NI", "MM" or "MC" for one continuous endpoint (see design_continuous), "MM" or "MC" for two continuous endpoints (see design_continuous2), or NULL for the default.

nMC

Number of Monte Carlo draws or simulated future studies, or NULL for the default.

enumerate

For two binary endpoints, whether the operating characteristics enumerate all outcomes (see design_binary2), or NULL for the default.

Value

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

Examples

qdm_endpoint("continuous") |>
  qdm_computation(method = "MM")
#> Design specification: one continuous endpoint (incomplete)
#>   Arguments set: method
#>   Still needed: the sample sizes (qdm_sample_size()), the prior distributions (qdm_prior()), the decision criterion (qdm_criterion())