plotinterimAPR: This function takes the result of either 'interimTrial' or...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/interim_and_survival_package_functions.R

Description

This function plots one graph showing the achieved average power rate (APR) and one graph showing the estimated average power rate (eAPR). Both are plotted against the interim analyses such that there development over time becomes visualized. The surivial study was stopped, when the estimated power rate (eAPR) exceeded a given threshold, which is represented by a dashed line.

Usage

1
  plotinterimAPR(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, plotinterimStops 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: plotinterimAPR(result)

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