Skip to contents

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.

Usage

qdm_criterion(x, criterion)

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_posterior or criterion_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.

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