Description Usage Arguments See Also Examples
Methods to access the stage-one, stage-two, or overall sample size of a
TwoStageDesign
.
n1
returns the first-stage sample size of a design,
n2
the stage-two sample size conditional on the stage-one test
statistic and n
the overall sample size n1 + n2
.
Internally, objects of the class TwoStageDesign
allow non-natural,
real sample sizes to allow smooth optimization (cf. minimize
for
details).
The optional argument round
allows to switch between the internal
real representation and a rounded version (rounding to the next positive
integer).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | n1(d, ...)
## S4 method for signature 'TwoStageDesign'
n1(d, round = TRUE, ...)
n2(d, x1, ...)
## S4 method for signature 'TwoStageDesign,numeric'
n2(d, x1, round = TRUE, ...)
n(d, x1, ...)
## S4 method for signature 'TwoStageDesign,numeric'
n(d, x1, round = TRUE, ...)
## S4 method for signature 'GroupSequentialDesign,numeric'
n2(d, x1, round = TRUE, ...)
## S4 method for signature 'OneStageDesign,numeric'
n2(d, x1, ...)
|
d |
design |
... |
further optional arguments |
round |
|
x1 |
stage-one test statistic |
TwoStageDesign
, see c2
for accessing
the critical values
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.