Augment a grid of candidate designs with type 1 and type 2 error probabilities, expected sample sizes and probabilities of early termination
Source:R/functions.R
augmentGrid.Rd
Augment a grid of candidate designs with type 1 and type 2 error probabilities, expected sample sizes and probabilities of early termination
Arguments
- d
a tibble created by `createGrid`
- parallel
use parallelisation if available
- cores
the number of cores to use when parallelising. If <code>NA</code>, all available cores are requested
- minChunkSize
The minimum size of the grid before paralellisation is attempted
Usage Notes
Regardless of the value of `parallel`, parallelisation is only used if the size of the grid is greater than <code>chunkSize</code>. If paralellisation is requested and needed, an exception is thrown if the parallel package is not available.
Examples
x <- createGrid(p0 = 0.1, p1 = 0.30, alpha = 0.1, beta = 0.1, nMin = 24, nMax = 32) %>%
augmentGrid(parallel = FALSE)