Skip to contents

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.

Usage

qdm_sample_size(x, n_t, n_c)

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).

Value

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

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())