prior <- PointMassPrior(.4, 1)
cp <- ConditionalPower(Normal(), prior)
evaluate(
cp,
TwoStageDesign(50, .0, 2.0, 50, 2.0, order = 5L),
x1 = 1
)
# these two are equivalent:
expected(cp, Normal(), prior)
Power(Normal(), prior)
Run the code above in your browser using DataLab