logRankTest {simIDM} | R Documentation |
Log-Rank Test for a Single Trial
Description
This function evaluates the significance of either PFS or OS endpoints in a trial, based on a pre-specified critical value.
Usage
logRankTest(data, typeEvent = c("PFS", "OS"), critical)
Arguments
data |
( |
typeEvent |
( |
critical |
(positive |
Value
Logical value indicating log-rank test significance.
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)
simTrial <- getClinicalTrials(
nRep = 1, 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)
)[[1]]
logRankTest(data = simTrial, typeEvent = "OS", critical = 3.4)
[Package simIDM version 0.1.0 Index]