CIF_k: The k^th cumulative incidence function.

Description Usage Arguments Details Value

View source: R/CIF_k.R

Description

This function aggregates the hazards table for all type of failures and computes the point estimator of the cumulative incidence function.

Usage

1
CIF_k(Hazard.table, group)

Arguments

Hazard.table

An output from Lambda_k(est, x, y, group,...).

group

The name of the group covariates (if any). If specified, the cumulative incidence function will be computed for each group seperately.

Details

This function estimates the cumulative incidence function for the k^th type of failure based on the observed data. When group is specified, the cumulative hazards for the k^th type of failure will be computed for each group seperately.

Value

It returns a data frame contains time of events, cumulative incidence, cumulative hazards for each type of failure, and group indicators (if any).


CompetingRisk documentation built on May 30, 2017, 2:54 a.m.