Sets the argument criterion of a design specification started by
qdm_endpoint. It is 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.- criterion
Decision criterion created by
criterion_posteriororcriterion_predictive, for one endpoint or for two endpoints as the endpoint requires.
Value
A design specification: x, or the specification of the
design x, with the decision criterion set.
See also
Other design steps:
qdm_build(),
qdm_computation(),
qdm_control(),
qdm_endpoint(),
qdm_external(),
qdm_prior(),
qdm_sample_size(),
qdm_tte()
Examples
qdm_endpoint("binary") |>
qdm_criterion(criterion_posterior(theta_tv = 0.2, theta_mav = 0.1,
gamma_go = 0.5, gamma_nogo = 0.8))
#> Design specification: one binary endpoint (incomplete)
#> Arguments set: criterion
#> Still needed: the sample sizes (qdm_sample_size()), the prior distributions (qdm_prior())
