How technically it possible to prolong the cumulative hazard curves until day 80 if in my original data I have follow-up time until 50 day? The cumulative results estimates will remain the same just that both lines are the same until day 80.
I used to create survival object object
surv = survfit(Surv(Tstart, Tstop, outcome==1)~T, data = data.long, ctype=1, id=id)
and then created a plot:
palette = c("#FF9E29", "#86AA00"),
risk.table = FALSE,
ylim=c(0,2),
xlim=c(0,70),
fun = "cumhaz")
You can transform the fit into a tibble for manual plotting using ggplot. By adding new rows at the maximal time point with the maximal value,
geom_step
will be extended as desired:Created on 2022-04-14 by the reprex package (v2.0.0)