Learn R Programming

adoptr (version 0.2.2)

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. For more details on the theoretical background see <doi:10.1002/sim.8291>. adoptr makes heavy use of the S4 class system. A good place to start learning about it 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 report hosted here.

Designs

adoptr currently supports TwoStageDesign, GroupSequentialDesign, and OneStageDesign.

Data distributions

Currently, the only implemented data distribution is Normal (one or two arms).

Priors

Both ContinuousPrior and PointMassPrior are supported for the single parameter of a DataDistribution.

Scores

See Scores for information on the basic system of representing scores. Available scores are ConditionalPower, ConditionalSampleSize, Power, and ExpectedSampleSize..