OneStageDesign-class | R Documentation |
OneStageDesign
implements a one-stage design as special case of
a two-stage design, i.e. as sub-class of TwoStageDesign
.
This is possible by defining n2 = 0,
c = c1f = c1e,
c2(x1) = ifelse(x1 < c, Inf, -Inf).
No integration pivots etc are required (set to NaN
).
OneStageDesign(n, c)
## S4 method for signature 'OneStageDesign'
TwoStageDesign(n1, order = 5L, eps = 0.01, ...)
## S4 method for signature 'OneStageDesign'
plot(x, y, ...)
n |
sample size (stage-one sample size) |
c |
rejection boundary (c = c1f = c1e) |
n1 |
|
order |
integer >= 2, default is 5; order of Gaussian quadrature integration rule to use for new TwoStageDesign. |
eps |
numeric > 0, default = .01; the single critical value c must be split in a continuation interval [c1f, c1e]; this is given by c +/- eps. |
... |
further optional arguments |
x |
design to plot |
y |
not used |
Note that the default plot,TwoStageDesign-method
method
is not supported for OneStageDesign
objects.
TwoStageDesign
, GroupSequentialDesign
design <- OneStageDesign(30, 1.96)
summary(design)
design <- TwoStageDesign(design)
summary(design)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.