plotinterimStops: This function creates a barplot showing at which interim...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/interim_and_survival_package_functions.R

Description

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.

Usage

1
  plotinterimStops(interimdat)

Arguments

interimdat

of type 'list'. The return value of either interimTrial or interimTrialSimulation

Value

none

Author(s)

Andreas Leha andreas.leha@med.uni-goettingen.de

See Also

plotinterimFDR, plotinterimAPR for other plotting functions on the same data

interimTrial and interimTrialSimulation for the data generation

Examples

 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)

survGenesInterim documentation built on May 2, 2019, 5:22 p.m.