ConditionalPowerclass  R Documentation 
This score evaluates P[X_{2} > c2(design, X_{1})  X_{1} = x_{1}]. Note that the distribution of X_{2} is the posterior predictive after observing X_{1} = x_{1}.
ConditionalPower(dist, prior, label = "Pr[x2>=c2(x1)x1]")
Power(dist, prior, label = "Pr[x2>=c2(x1)]")
## S4 method for signature 'ConditionalPower,TwoStageDesign'
evaluate(s, design, x1, optimization = FALSE, ...)
dist 
a univariate 
prior 
a 
label 
object label (string) 
s 

design 
object 
x1 
stageone test statistic 
optimization 
logical, if 
... 
further optional arguments 
Scores
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.