Format a design specification
Usage
# S3 method for class 'qdm_spec'
format(x, digits = 4L, ...)Arguments
- x
An object of class
"qdm_spec", created byqdm_endpointand the other design steps.- digits
Number of significant digits for numeric values.
- ...
Not used.
Value
A character vector with one element per line of the description.
For a specification that is not complete, it lists the arguments set and
those still needed. For a complete specification, it gives the
description of the design that qdm_build creates (see
format.qdm_design), or the error that building it gives.
Examples
spec <- qdm_endpoint("binary") |>
qdm_sample_size(n_t = 12, n_c = 12)
format(spec)
#> [1] "Design specification: one binary endpoint (incomplete)"
#> [2] " Arguments set: n_t, n_c"
#> [3] " Still needed: the prior distributions (qdm_prior()), the decision criterion (qdm_criterion())"
