createGrid {mtdesign} | R Documentation |
Create a grid of candidate designs
Description
Create a grid of candidate designs
Usage
createGrid(
p0,
p1,
alpha = 0.1,
beta = NA,
power = ifelse(is.na(beta), 0.9, 1 - beta),
nMin = NA,
nMax = NA,
mander = TRUE
)
Arguments
p0 |
the response rate under the null hypothesis |
p1 |
the response rate under the alternate hypothesis |
alpha |
the desired (one-sided) type 1 error rate |
beta |
the desired type 2 error rate |
power |
an alternative to |
nMin |
the lower bound for the search grid. If |
nMax |
the lower bound for the search grid. If |
mander |
is a Mander & Thompson or a Simon's design required? |
Value
a tibble. See Usage notes for a list and description of columns.
Examples
# Standard use for a Simon's 2-stage design
x <- createGrid(p0 = 0.1, p1 = 0.5, alpha = 0.1, beta = 0.1, mander = FALSE)
# Custom search bounds for a Mander & Thompson design
y <- createGrid(p0 = 0.1, p1 = 0.4, alpha = 0.1, beta = 0.1, nMin = 20, nMax = 30)
[Package mtdesign version 0.1.0 Index]