Description Usage Arguments Value
This takes survival times and censoring/cause indicators for two variables and outputs the bivariate cause specific cumulative hazard and jumps in the bivariate cause specific cumulative hazard
1 | BivCauseHaz(data, cause1, cause2)
|
data |
An n by 4 matrix where the first column is the observed event time of the first variable, the second column is the observed event time of the second variable, the third column is the censoring/cause indicator for the first variable (0 indicates censored) and the fourth column is the censoring/cause indicator for the second variable (0 indicates censored) |
cause1 |
An indicator of which cause to calculate the cause specific hazard for for the second variable, should be a non-zero value that appears in the cencoring/cause indicator column for the second variable |
A list with the following elements:
hazard: Jumps in the bivariate cause specific cumulative hazard
cumhazard: The bivariate cause specific cumulative hazard
cause1: The cause for the first variable
cause2: The cause for the second variable
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.