Proper use of istate argument in survival::survfit function
Our data is like this: People were firstly assessed at baseline as being either state a
or b
. During the follow up we recorded again what state the people are in (again a
vs. b
). Here is some dummy data:
R survival package: survfit.coxph error when using timeline-style data
I’m running into an error when trying to obtain survival curves from a Cox PH model fitted using timeline-type data with a Surv2 formula.
Weird Survival curves with confidence intervals in R
My survival graph looks weird at the end of the curves.
Using tmerge to create multiple time-dependent covariates
I am trying to learn how to apply tmerge
to split time in order to create time-varying covariates for survival analyses.
How do I incorporate background mortality to produce an excess hazard model using flexsurv?
The flexsurv
package in R facilitates the use of background mortality estimates to model excess hazard. In the examples I can find (the standsurv
vignette and the 2023 paper by Sweeting et al.), the source of this background mortality is the survival::survexp.us
object. I would like to use more relevant sources of background mortality but cannot figure out how to do this.