N1-class | R Documentation |
N1
is a class that computes the n1
value of a design.
This can be used as a score in minimize
.
N1(label = NA_character_)
## S4 method for signature 'N1,TwoStageDesign'
evaluate(s, design, optimization = FALSE, ...)
label |
object label (string) |
s |
|
design |
object |
optimization |
logical, if |
... |
further optional arguments |
an object of class N1
See AverageN2
for a regularization of
the second-stage sample size.
n1_score <- N1()
evaluate(
N1(),
TwoStageDesign(70, 0, 2, rep(60, 6), rep(1.7, 6))
) # 70
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.