CovComp: Output the martingale and counting process covariance for two...

Description Usage Arguments Value

View source: R/CovComp.R

Description

This takes survival times and censoring/cause indicators for two variables and outputs the martingale and counting process covariance at time t

Usage

1
CovComp(data, t, cause1, cause2, bivsurvtype = "dabrowska")

Arguments

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)

t

The time to evaluate the martingale and counting process covariance at

cause1

An indicator of which cause to calculate the cause specific hazard for for the first variable, should be a non-zero value that appears in the censoring/cause indicator column for the first variable

cause2

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 censoring/cause indicator column for the second variable

bivsurvtype

A string vector indicating the type of bivariate survival estimator to use, "dabrowska" for Dabrowska's estimator and "linying" for Lin Ying. Lin Ying should only be used for univariate censoring, Dabrowska is default

Value

A list with the following elements


blangworthy/survPCA documentation built on Oct. 3, 2020, 3:04 p.m.