Open steliosbl opened 2 months ago
I have a few other things to do before I tackle this. Surv2 was an experimental idea which never worked out, at least in the sense of being useful to my own work, so I have not paid much attention to it. But I'll take a look.
Hello, I'm running into an error when trying to obtain survival curves from a CoxPH fitted using timeline-type data with a Surv2 formula.
Here is a barebones example, using the
mgus
data and the exact code from the vignette.I have traced the error inside
survfit.coxph
to the variablemf
not taking the value it's supposed to take (survfit.coxph.R:83):When called with a
coxph
object that uses aSurv
-type formula,mf
is as expected. When the formula is aSurv2
, however, it appears to return an empty frame, which then dominoes into the error I'm experiencing.Am I making a mistake when calling
survfit.coxph
? Or does it currently not supportSurv2
?Thank you