Description Usage Arguments Value See Also Examples
subject_to(...)
can be used to generate an object of class
ConstraintsCollection
from an arbitrary number of (un)conditional
constraints.
1 2 3 4 | subject_to(...)
## S4 method for signature 'ConstraintsCollection,TwoStageDesign'
evaluate(s, design, optimization = FALSE, ...)
|
... |
either constraint objects (for |
s |
object of class |
design |
object |
optimization |
logical, if |
an object of class ConstraintsCollection
subject_to
is intended to be used for constraint
specification the constraints in minimize
.
1 2 3 4 5 6 7 8 9 | # define type one error rate and power
toer <- Power(Normal(), PointMassPrior(0.0, 1))
power <- Power(Normal(), PointMassPrior(0.4, 1))
# create constrain collection
subject_to(
toer <= 0.025,
power >= 0.9
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.