simulate_batch: Batch simulate blinded sample size review bias

Description Usage Arguments Details Value Author(s) Examples

Description

Simulate bias of blinded sample size review for a range of parameter settings

Usage

1
simulate_batch(G, runs, use_mclapply2 = FALSE, multicore = TRUE)

Arguments

G

Object with paramter settings for delta, sigma and n1 in each row

runs

Number of simulation runs

use_mclapply2

use mclapply2 from package bt88.03.704 which implements a status bar (see details)

multicore

should multicore parallellization be used

Details

To use mclapply2 from bt88.03.704 you have to install this library (e.g. devtools::install_github('floatofmath/bt88.03.704')) unfortunately the statusbar implementation does not work with Rstudio.

Value

Object with parameters and simulation results in each row

Author(s)

Florian Klinglmueller

Examples

1
2
3
4
5
6
data(maxsim)
G2s <- select_results(maxsim,c('mean.bias'))
G2e <- add_epsilon(G2s,.05,.05,subset=c('delta','sigma'))
## Not run: plot_grid(maxsim,G2s,G2e,what='delta')
resim1 <- simulate_batch(G2e,10^3)
## End(Not run)

floatofmath/blindConfidence documentation built on May 16, 2019, 1:20 p.m.