setSimonParams: Sets the parameters for a given "simon"-object.

Description Usage Arguments See Also Examples

View source: R/zzz.R

Description

Sets the parameters for a given "simon"-object.

Usage

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

Arguments

s

a "simon"-object which is generated by the function setupSimon.

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.

See Also

setupSimon

Examples

1
2
3
4
5
6
7
#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

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