passedLogRank {simIDM} | R Documentation |
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)
Arguments
simTrials |
( |
typeEvent |
( |
eventNum |
( |
critical |
(positive |
Value
Logical vector indicating log-rank test significance for each trial.
Examples
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)
[Package simIDM version 0.1.0 Index]