View source: R/as.data.table.prodlim.R
as.data.table.prodlim | R Documentation |
data.table
Collect results of a fitted prodlim object in a data.table
## S3 method for class 'prodlim'
as.data.table(x, keep.rownames = FALSE, ...)
x |
object obtained with function |
keep.rownames |
Not used |
... |
passed to |
By default object contains results for all fitted time points and all strata.
Use arguments times and newdata of summary.prodlim
to subset.
A data.table with the results of the prodlim object
Thomas A. Gerds <tag@biostat.ku.dk>
prodlim
, data.table
library(data.table)
set.seed(8)
d <- SimCompRisk(17)
fit <- prodlim(Hist(time,event)~X1,data=d)
as.data.table(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.