powered by
OS Survival Function from Piecewise Constant Hazards
PWCsurvOS(t, h01, h02, h12, pw01, pw02, pw12)
This returns the value of OS survival function at time t.
(numeric) study time-points.
numeric
(numeric vector) constant transition hazards for 0 to 1 transition.
numeric vector
(numeric vector) constant transition hazards for 0 to 2 transition.
(numeric vector) constant transition hazards for 1 to 2 transition.
(numeric vector) time intervals for the piecewise constant hazards h01.
h01
(numeric vector) time intervals for the piecewise constant hazards h02.
h02
(numeric vector) time intervals for the piecewise constant hazards h12.
h12
PWCsurvOS(1:5, c(0.3, 0.5), c(0.5, 0.8), c(0.7, 1), c(0, 4), c(0, 8), c(0, 3))
Run the code above in your browser using DataLab