Description Usage Arguments Value See Also Examples
Implements the L1norm of the design's stagetwo sample size function. The average of the stagetwo sample size without weighting with the data distribution is computed. This can be interpreted as integration over a unifrom prior on the continuation region.
1 2 3 4  AverageN2(label = NA_character_)
## S4 method for signature 'AverageN2,TwoStageDesign'
evaluate(s, design, optimization = FALSE, subdivisions = 10000L, ...)

label 
object label (string) 
s 

design 
object 
optimization 
logical, if 
subdivisions 
number of subdivisions to use for adaptive integration (only affects nonoptimization code) 
... 
further optional arguments 
an object of class AverageN2
N1
for penalizing n1 values
1 2 3 4 5 6  avn2 < AverageN2()
evaluate(
AverageN2(),
TwoStageDesign(100, 0.5, 1.5, 60.0, 1.96, order = 5L)
) # 60

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.