Surv
object that forces in competing risks and the IPCW needed for Fine-Gray estimation.R/GetFrineGrayWeights.R
getFineGrayWeights.Rd
getFineGrayWeights
creates a list Surv
object and vector of weights required for estimation.
getFineGrayWeights(ftime, fstatus, cencode = 0, failcode = 1)
Numeric: Observed event (failure) times
Numeric: Observed event (failure) types
Numeric: Code to denote censored observations (Default is 0)
Numeric: Code to denote event of interest (Default is 1)
A list that returns both an object of class Surv
that forces in the competing risks indicators and a vector of weights needed for parameter estimation.