rpact: Confirmatory Adaptive Clinical Trial Design and Analysis


getDesignSet {rpact}R Documentation

Get Design Set

Description

Creates a trial design set object and returns it.

Usage

getDesignSet(...)

Arguments


...

'designs' OR 'design' and one or more design parameters, e.g., deltaWT = c(0.1, 0.3, 0.4).

  • design The master design (optional, you need to specify an additional parameter that shall be varied).

  • designs The designs to compare (optional).

Details

Specify a master design and one or more design parameters or a list of designs.

Value

Returns a TrialDesignSet object.

Examples


# Example 1
 design <- getDesignGroupSequential(alpha = 0.05, kMax = 6, 
    sided = 2, typeOfDesign = "WT", deltaWT = 0.1)
 designSet <- getDesignSet()
 designSet$add(design = design, deltaWT = c(0.3, 0.4))
 if (require(ggplot2)) plot(designSet, type = 1)

# Example 2 (shorter script)
design <- getDesignGroupSequential(alpha = 0.05, kMax = 6, 
    sided = 2, typeOfDesign = "WT", deltaWT = 0.1)
designSet <- getDesignSet(design = design, deltaWT = c(0.3, 0.4))
if (require(ggplot2)) plot(designSet)


[Package rpact version 2.0.5 Index | www.rpact.org]