powered by
data.table
Collect results of a fitted prodlim object in a data.table
# S3 method for prodlim as.data.table(x, keep.rownames = FALSE, ...)
A data.table with the results of the prodlim object
object obtained with function prodlim
prodlim
Not used
passed to summary.prodlim
summary.prodlim
Thomas A. Gerds <tag@biostat.ku.dk>
By default object contains results for all fitted time points and all strata. Use arguments times and newdata of summary.prodlim to subset.
prodlim, data.table
library(data.table) set.seed(8) d <- SimCompRisk(17) fit <- prodlim(Hist(time,event)~X1,data=d) as.data.table(fit)
Run the code above in your browser using DataLab