powered by
PFS Survival Function from Piecewise Constant Hazards
PWCsurvPFS(t, h01, h02, pw01, pw02)
This returns the value of PFS 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) time intervals for the piecewise constant hazards h01.
h01
(numeric vector) time intervals for the piecewise constant hazards h02.
h02
PWCsurvPFS(1:5, c(0.3, 0.5), c(0.5, 0.8), c(0, 4), c(0, 8))
Run the code above in your browser using DataLab