Learn R Programming

OneArmPhaseTwoStudy (version 1.0.3)

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

Description

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

Usage

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

Run this code
# NOT RUN {
#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
# }

Run the code above in your browser using DataLab