summary.cuminc2: 'cuminc2' summary method

View source: R/cuminc2.R

summary.cuminc2R Documentation

cuminc2 summary method

Description

cuminc2 summary method

Usage

## S3 method for class 'cuminc2'
summary(object, times = NULL, digits = 5L, ...)

Arguments

object

an object of class cuminc2

times

a vector of times

digits

number of digits past the decimal point to keep

...

ignored

Value

A list with the following components:

est

a matrix of estimates of the subdistributions for the cumulative incidence model(s); see timepoints

var

a matrix giving the corresponding variances for the cumulative incidence model(s); see timepoints

events

a matrix with the number of cumulative events up to and including each value in times

total_events

a vector giving the total number of events of each type (excluding censored observations)

total_groups

a vector giving the number by group (including censored observations)

total_atrisk

a vector giving the number remaining in the risk set regardless of event or censoring

See Also

cuminc2; print.cuminc2; timepoints; timepoints2

Examples

ci <- cuminc2(Surv(futime, event(censored)) ~ sex, transplant)
summary(ci)

ci <- cuminc2(Surv(futime, event(censored)) ~ 1, transplant)
summary(ci, times = 0:10 * 100)


raredd/cmprsk2 documentation built on March 29, 2024, 5:34 a.m.