# proportional hazards
plotHazSurv(
bsl_dist=c("weibull")
,param=c(1.2,1/30)
,fun_list=list(function(x){x^0*0.7})
,40
,tit= c("Hazard Function","Survival Function")
,pos=c(1,2)
)
# crossing hazards
plotHazSurv(
bsl_dist=c("weibull")
,param=c(1.2,1/30)
,fun_list=list(function(x){1.3*(x<10)+(x>=10)*0.7})
,40
,tit= c("Hazard Function","Survival Function")
,pos=c(1,2)
)
Run the code above in your browser using DataLab