Description Usage Arguments Value Author(s) See Also Examples
View source: R/interim_and_survival_package_functions.R
For each simulated interim analysis one bar is drawn that's height represents the fraction of simulated survival studies, that were stopped at that particular interim analysis.
1 | plotinterimStops(interimdat)
|
interimdat |
of type 'list'. The return value of
either |
none
Andreas Leha andreas.leha@med.uni-goettingen.de
plotinterimFDR
, plotinterimAPR
for other
plotting functions on the same data
interimTrial
and interimTrialSimulation
for
the data generation
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | ## generate the data
fc <- c(rep(0, 500), ceiling(rnorm(500, 0, 1)-0.5))
Sigma.1 <- diag(1000)
Sigma.2 <- diag(1000)
N <- 50
l.1.tick <- 60
l.2 <- 60
lambda <- 60
M.1 <- 2
M.2 <- 2
alpha <- 0.05
powerThreshold <- 0.8
adjustment <- "BH"
numSimRuns <- 2
## Not run: result <- interimTrialSimulation(fc, Sigma.1, Sigma.2,
N, l.1.tick, l.2, lambda,
M.1, M.2, alpha, powerThreshold, adjustment,
numSimRuns, parallel=FALSE)
## End(Not run)
## Not run: plotinterimStops(result)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.