Description Usage Arguments Details Value Author(s) Examples
Simulate bias of blinded sample size review for a range of parameter settings
1 | simulate_batch(G, runs, use_mclapply2 = FALSE, multicore = TRUE)
|
G |
Object with paramter settings for |
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 |
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.
Object with parameters and simulation results in each row
Florian Klinglmueller
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.