cif: Predicting the cumulative incidence function

View source: R/CIF.R

cifR Documentation

Predicting the cumulative incidence function

Description

Predicting the cumulative incidence function for subtype, IPWsubtype, and AIPWsubtype models.

Usage

cif(fit, newdata, individual = FALSE, id, na.action = na.pass)

Arguments

fit

subtype, IPWsubtype or AIPWsubtype object.

newdata

a data.frame which has variables in formula and markers. This value must be specified.

individual

a logical value: if FALSE, each row of newdata is considered as a different subject. If TRUE, id must be specified indicating variable name of subjects and time interval must be included in newdata (start, stop, status). Multiple rows represent different time points for one subject.

id

a variable name identifying subject id.

na.action

na.action to be passed

Details

The cumulative incidence function with a subtype defined by marker values in newdata. If a fitted object has strata, strata variable must be included in newdata.

Value

An object of class cif representing the fit. A list of time and cumulative incidence functions for distinct subjects.


joolee0918/AIPWsubtype documentation built on Feb. 29, 2024, 5:03 p.m.