Description Usage Arguments Value Examples
Estimation of Cumulative Incidence Functions (CIF) of competing events.
This function is based on the CIF estimated by the survival package.
1 2 3 4 5 6 7 8 9 10 |
df |
A data frame containing, at a minimum, exit, event, and exposure. |
time |
Name of the column in df containing times of event or censoring. |
event |
Name of the column in df containing codes for censoring (0) and event types (1-4). Analysis of more than 4 competing events is not supported by this function. |
exposed |
Name of the column in df containing a binary (0/1) exposure variable for stratification. |
entry |
Name of the column in df containing late entry times. |
weights |
Name of the column in df containing user-supplied weights. If ipwvars is utilized, this argument is ignored. |
ipwvars |
A vector of names of columns in 'df' containing predictor variables for building a propensity score model for exposure and creating standardized inverse probability weights using this model. Overrides the weights argument. |
print.attr |
A logical indicator for whether results should be returned in console. |
A data frame with the following columns:
Type of event that occurs at the given time.
Exposure group in which the event happens.
Time of the event.
Value of the unexposed (denoted by “o”) composite cumulative incidence at the given time.
Value of the exposed (denoted by “x”) composite cumulative incidence at the given time.
Value of the unexposed cumulative incidence of event 1 at the given time.
Value of the exposed cumulative incidence of event 1 at the given time.
Sub-hazard ratio/Cause-specific hazard ratio for event 1.
Sub-hazard ratio/Cause-specific hazard ratio for event 2.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.