as.data.frame.prodlim {prodlim} | R Documentation |
Turn prodlim objects into a data.frame
Description
Collect results of a fitted prodlim object in a data.frame
Usage
## S3 method for class 'prodlim'
as.data.frame(x, ...)
Arguments
x |
object obtained with function |
... |
passed to |
Details
By default object contains results for all fitted time points and all strata.
Use arguments times and newdata of summary.prodlim
to subset.
Value
A data.table with the results of the prodlim object
Author(s)
Thomas A. Gerds <tag@biostat.ku.dk>
See Also
Examples
set.seed(8)
d <- SimCompRisk(17)
fit <- prodlim(Hist(time,event)~X1,data=d)
as.data.frame.prodlim(fit)
as.data.frame.prodlim(fit)
[Package prodlim version 2025.04.28 Index]