# NOT RUN {
data(ctcData)
# sample data to reduce computation time of example
smp <- ctcData$id %in% sample(1:1000, 150, FALSE)
ctcData <- ctcData[smp,]
# analysis with both time-dependent and time-independent components
res <- ctCoxMSM(data = ctcData, base = "x", td = "xt")
# analysis with only the time-independent component
res <- ctCoxMSM(data = ctcData, base = "x")
# analysis with only the time-dependent component
res <- ctCoxMSM(data = ctcData, td = "xt")
# }
Run the code above in your browser using DataLab