setSimonParams {OneArmPhaseTwoStudy} | R Documentation |
Sets the parameters for a given "simon"-object.
setSimonParams(s, alpha = 0.05, beta = 0.05, p0 = 0.1, p1 = 0.3)
s |
a "simon"-object which is generated by the function |
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. |
#Create "simon"-object. simon <- setupSimon() #Change parameters. setSimonParams(simon, alpha = 0.1, beta = 0.2, p0 = 0.25, p1 = 0.45) #Calculate designs for the given "simon"-object. designs <- getSolutions(simon)$Solutions designs