Skip to contents

Augment a grid of candidate designs with type 1 and type 2 error probabilities, expected sample sizes and probabilities of early termination

Usage

augmentGrid(d, parallel = TRUE, cores = NA, minChunkSize = 1e+05)

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

Value

an augmented grid tibble

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)