piecewiseTime <- getPiecewiseSurvivalTimeEnrichment(
piecewiseSurvivalTime = c(0, 6),
lambdaControls = rbind(
markerPositive = c(0.08, 0.12),
markerNegative = c(0.05, 0.09)
),
hazardRatio = list(
favorable = rbind(
markerPositive = c(0.65, 0.55),
markerNegative = c(0.9, 0.8)
),
conservative = rbind(
markerPositive = c(0.8, 0.7),
markerNegative = c(1, 0.9)
)
)
)
as.data.frame(piecewiseTime)
getPiecewiseSurvivalTimeEnrichment(
piecewiseSurvivalTime = c(0, 6),
medianControls = rbind(markerPositive = c(12, 24), markerNegative = c(18, 30)),
medianTreatments = rbind(markerPositive = c(18, 36), markerNegative = c(20, 32))
)
Run the code above in your browser using DataLab