Learn R Programming

prodlim (version 2025.04.28)

as_tibble.prodlim: Turn prodlim objects into a tibble

Description

Collect results of a fitted prodlim object in a tibble

Usage

as_tibble.prodlim(x, ...)

Value

A data.table with the results of the prodlim object

Arguments

x

object obtained with function prodlim

...

passed to summary.prodlim

Author

Thomas A. Gerds <tag@biostat.ku.dk>

Details

By default object contains results for all fitted time points and all strata. Use arguments times and newdata of summary.prodlim to subset.

See Also

prodlim, tibble

Examples

Run this code
library(tibble)
set.seed(8)
d <- SimCompRisk(17)
fit <- prodlim(Hist(time,event)~X1,data=d)
tibble::as_tibble(fit)

Run the code above in your browser using DataLab