Description Usage Arguments Examples
View source: R/two-stage-design.R
For the two-stage design: Finds r1, the minimum number of Stage 1 successes to continue to Stage 2, and r2, the minimum number of Stage 2 successes to reject the null hypothesis. Find r1 so that the probability of early stopping is less than or equal to pearly. Find r2 from Binomial model with no early stopping and significance level alpha.
1 | two_stage_critical_values(n, p, pearly = 0.1, alpha = 0.1)
|
n |
vector containing sample sizes planned for Stage 1 (n1) and Stage 2 (n2). |
p |
vector containing the probability of successful outcomes in Stage 1 (p1) and Stage 2 (p2) under the null hypothesis. |
pearly |
desired probability of early stopping (default is 0.1). Not necessary for determining critical values for the one-stage design. |
alpha |
desired significance level (default is 0.1). |
1 | two_stage_critical_values(n=c( 5, 31), p=c(.8,.2), pearly=.1, alpha=.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.