powered by
N1 is a class that computes the n1 value of a design. This can be used as a score in minimize.
N1
n1
minimize
N1()# S4 method for N1,TwoStageDesign evaluate(s, design, optimization = FALSE, ...)
# S4 method for N1,TwoStageDesign evaluate(s, design, optimization = FALSE, ...)
Score object
Score
object
logical, if TRUE uses a relaxation to real parameters of the underlying design; used for smooth optimization.
TRUE
further optional arguments
an object of class N1
See AverageN2 for a regularization of the second-stage sample size.
AverageN2
# NOT RUN { n1_score <- N1() evaluate( N1(), TwoStageDesign(70, 0, 2, rep(60, 6), rep(1.7, 6)) ) # 70 # }
Run the code above in your browser using DataLab