Description Usage Arguments Details Value Author(s) References Examples
dsgnPrep
takes Englert and Kieser's optimal adaptive design and adds
information that is needed by other functions.
1 |
dsgn |
Dataframe containing one of the designs in |
w1, w2 |
Stage 1 and 2 weights. If |
The function adds, to each x1 leading to 2nd stage, the corresponding p-value (p1) and its back-wards image (p1B), the stage-wise weights w1 and w2 and other information used in inference methods proposed by Nhacolo and Brannath (2018).
Dataframe containing the input dataframe with added information.
Arsenio Nhacolo
Nhacolo, A. and Brannath, W. Interval and point estimation in adaptive Phase II trials with binary endpoint. Stat Methods Med Res, 2018.
1 2 3 4 5 6 7 8 9 | ## Not run:
#Designs with w1a and w2 calculated based on sample sizes
EKOADwn <- data.frame()
for (j in 1:max(EKOptAdaptDesigns$id)){
EKOADwn <- rbind(EKOADwn, dsgnPrep(dsgn = EKOptAdaptDesigns[EKOptAdaptDesigns$id==j,],w1 = "n"))
}
save(EKOADwn,file = "EKOADwn.RData")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.