
Set the computation of the probabilities of a design specification
Source:R/qdm_computation.R
qdm_computation.RdSets 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.
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 (seedesign_continuous),"MM"or"MC"for two continuous endpoints (seedesign_continuous2), orNULLfor the default.- nMC
Number of Monte Carlo draws or simulated future studies, or
NULLfor the default.- enumerate
For two binary endpoints, whether the operating characteristics enumerate all outcomes (see
design_binary2), orNULLfor the default.
See also
Other design steps:
qdm_build(),
qdm_control(),
qdm_criterion(),
qdm_endpoint(),
qdm_external(),
qdm_prior(),
qdm_sample_size(),
qdm_tte()
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())