You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An idea to ease the implementation of survival methods (even outside this package) with SDISC data. The big difference from CDSIC standard and the notation used throughout survival analysis in R is the way the outcomes are defined: CDISC creates an indicator for the censoring and the {survival} package (and many others) uses an indicator for the event.
We could export a function similar to survival::Surv() that uses the censoring indicator.
Surv_CNSR<-function(time, event) survival::Surv(time=time, event=1-event)
# we can use it like thissurvival::coxph(Surv_CNSR(AVAL, CNSR) ~SEX, adtte)
A bigger bonus if we could somehow set default names survival::coxph(Surv_CNSR(time = AVAL, event = CNSR)
The text was updated successfully, but these errors were encountered:
Idea
An idea to ease the implementation of survival methods (even outside this package) with SDISC data. The big difference from CDSIC standard and the notation used throughout survival analysis in R is the way the outcomes are defined: CDISC creates an indicator for the censoring and the {survival} package (and many others) uses an indicator for the event.
We could export a function similar to
survival::Surv()
that uses the censoring indicator.A bigger bonus if we could somehow set default names
survival::coxph(Surv_CNSR(time = AVAL, event = CNSR)
The text was updated successfully, but these errors were encountered: