Learn R Programming

simIDM (version 0.1.0)

passedLogRank: Helper function to conduct log-rank tests for either PFS or OS

Description

This function evaluates the significance of either PFS or OS endpoints for each trial in a list of trials, based on a pre-specified critical value.

Usage

passedLogRank(simTrials, typeEvent, eventNum, critical)

Value

Logical vector indicating log-rank test significance for each trial.

Arguments

simTrials

(list)
simulated trial data sets, see getClinicalTrials().

typeEvent

(string)
endpoint to be evaluated, possible values are PFS and OS.

eventNum

(integer)
number of events required to trigger analysis.

critical

(positive number)
critical value of the log-rank test.

Examples

Run this code
transition1 <- exponential_transition(h01 = 0.06, h02 = 0.3, h12 = 0.3)
transition2 <- exponential_transition(h01 = 0.1, h02 = 0.4, h12 = 0.3)
simTrials <- getClinicalTrials(
  nRep = 50, nPat = c(800, 800), seed = 1234, datType = "1rowPatient",
  transitionByArm = list(transition1, transition2), dropout = list(rate = 0.5, time = 12),
  accrual = list(param = "intensity", value = 7)
)
passedLogRank(simTrials = simTrials, typeEvent = "PFS", eventNum = 300, critical = 2.4)

Run the code above in your browser using DataLab