View source: R/as.data.frame.prodlim.R
as.data.frame.prodlim | R Documentation |
Collect results of a fitted prodlim object in a data.frame
## S3 method for class 'prodlim'
as.data.frame(x, ...)
x |
object obtained with function |
... |
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
set.seed(8)
d <- SimCompRisk(17)
fit <- prodlim(Hist(time,event)~X1,data=d)
as.data.frame.prodlim(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.