setupSimon: Creates a "simon"-object.

Description Usage Arguments Examples

View source: R/zzz.R

Description

Creates a "simon"-object which can be used in the function getSolutions to identify possible designs.

Usage

1
setupSimon(alpha = 0.05, beta = 0.05, p0 = 0.1, p1 = 0.3)

Arguments

alpha

the maximal type I error rate.

beta

the maximal type II error rate.

p0

the response probability under the null hypothesis.

p1

the response probability under the alternative hypothesis.

Examples

1
2
3
4
5
#Create a "simon"-object
simon <- setupSimon()
#Calculate designs for the given "simon"-object.
designs <- getSolutions(simon)$Solutions
designs

Example output

Loading required package: Rcpp
   ID r1 n1 r  n  p0  p1  enP0  enP1  petP0  petP1  Alpha   Beta Admissible
1   0  0 14 7 41 0.1 0.3 34.82 40.82 0.2288 0.0068 0.0468 0.0498          0
2   1  1 20 7 41 0.1 0.3 32.77 40.84 0.3917 0.0076 0.0467 0.0491          0
3   2  2 25 7 41 0.1 0.3 32.41 40.86 0.5371 0.0090 0.0467 0.0486          1
4   3  2 23 8 46 0.1 0.3 32.38 45.64 0.5920 0.0157 0.0345 0.0475          0
5   4  3 27 8 46 0.1 0.3 32.36 45.62 0.7179 0.0202 0.0339 0.0488          0
6   5  2 22 8 47 0.1 0.3 31.50 46.48 0.6200 0.0207 0.0379 0.0454          0
7   6  3 26 8 47 0.1 0.3 31.44 46.45 0.7409 0.0260 0.0368 0.0476          0
8   7  2 21 8 48 0.1 0.3 30.49 47.27 0.6484 0.0271 0.0410 0.0462          0
9   8  3 25 8 48 0.1 0.3 30.44 47.24 0.7636 0.0332 0.0394 0.0494          0
10  9  2 20 8 49 0.1 0.3 29.37 47.97 0.6769 0.0355 0.0438 0.0499          1
   Admiss_Start Admiss_End    Type
1            NA         NA        
2            NA         NA        
3        0.2752     1.0000 MiniMax
4            NA         NA        
5            NA         NA        
6            NA         NA        
7            NA         NA        
8            NA         NA        
9            NA         NA        
10       0.0000     0.2752 Optimal

OneArmPhaseTwoStudy documentation built on May 2, 2019, 9:28 a.m.