Learn R Programming

adoptr (version 0.1.1)

adoptr: Adaptive Optimal Two-Stage Designs

Description

The adoptr package provides functionality to explore custom optimal two-stage designs for one or two-arm superiority tests. Currently, only (asymptotically) normal test statistics are supported. adoptr is programmed in an object-oriented way. A description on object-oriented usage of R can be found here.

Arguments

Quickstart

For a sample workflow and a quick demo of the capabilities, see here.

A variety of examples is presented in the validation package adoptrValidation and can be seen here.

Designs

adoptr currently supports TwoStageDesign, GroupSequentialDesign, and OneStageDesign.

Data distributions

Currently, the only implemented data distribution is Normal.

Priors

Both ContinuousPrior and PointMassPrior are supported for the single parameter of a DataDistribution. An example on working with priors is provided here.

Scores

adoptr provides the score types UnconditionalScore and ConditionalScore. The conditional scores ConditionalPower and ConditionalScore are already implemented. Unconditional scores that are expectations of conditional scores can be created via expected and are represented by the class IntegralScore. For an example how to work with scores, see here.