View source: R/as_tibble.prodlim.R
as_tibble.prodlim | R Documentation |
tibble
Collect results of a fitted prodlim object in a tibble
as_tibble.prodlim(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
, tibble
library(tibble)
set.seed(8)
d <- SimCompRisk(17)
fit <- prodlim(Hist(time,event)~X1,data=d)
as_tibble(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.