Sets the arguments n_t and n_c of a design specification
started by qdm_endpoint. They are checked when the design is
built, by the design_*() function of the endpoint.
Arguments
- x
A design specification started by
qdm_endpoint, or a design, which is converted to the specification that builds it.- n_t
Number of subjects in the treatment group.
- n_c
Number of subjects in the concurrent control group: 0 for a study without a concurrent control group (external control data only, a hypothetical control or a fixed control).
See also
Other design steps:
qdm_build(),
qdm_computation(),
qdm_control(),
qdm_criterion(),
qdm_endpoint(),
qdm_external(),
qdm_prior(),
qdm_tte()
Examples
qdm_endpoint("binary") |>
qdm_sample_size(n_t = 12, n_c = 12)
#> Design specification: one binary endpoint (incomplete)
#> Arguments set: n_t, n_c
#> Still needed: the prior distributions (qdm_prior()), the decision criterion (qdm_criterion())
