Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


OneArmPhaseTwoStudy (version 1.0.3)

setSub1Params: Sets the parameters for a given "sub1"-object.

Description

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

Usage

setSub1Params(sub1, alpha = 0.1, beta = 0.1, pc0 = 0.6, pt0 = 0.7,
  pc1 = 0.8, pt1 = 0.9)

Arguments

sub1

a "sub1"-object which is generated by the function setupSub1Design.

alpha

the maximal type I error rate.

beta

the maximal type II error rate.

pc0

the response probability for the subset endpoint under the null hypothesis.

pt0

the response probability for the superset endpoint under the null hypothesis.

pc1

the response probability for the subset endpoint under the alternative hypothesis.

pt1

the response probability for the superset endpoint under the alternative hypothesis.

See Also

setupSub1Design

Examples

Run this code
# NOT RUN {
#Create "sub1"-object.
sub1 <- setupSub1Design()
#Change parameters.
setSub1Params(sub1, beta = 0.2, pc0 = 0.5, pt0 = 0.6)
#Calculate designs for the given "sub1"-object.
designs <- getSolutionsSub1(sub1)$Solutions
designs
# }

Run the code above in your browser using DataLab