CovMatComp: Output the entire martingale and counting process covariance...

Description Usage Arguments Value

View source: R/CovMatComp.R

Description

This takes survival times and censoring/cause indicators for p different variables and outputs the p times p martingale and counting process covariance/correlation matrices for all variables in the presence of competing risks.

Usage

1
CovMatComp(data, causes, p = NA, t, mineigen = 0.001)

Arguments

data

A matrix where the first p columns are the event times for the p variables and the next p columns are the censoring/cause indicators for the p variables. The order for the event times and censoring/cause indicators needs to be the same.

causes

A p-dimensional vector that has the causes for each of the p different variables.

p

The number of variables to calculate the matrix for, if NA ncol(data)/2 will be used

t

The timepoint to estimate the covariance and correlation matrices

mineigen

The minimum eigenvalue for the martingale and counting process covariance matrices if not already positive semidefinite

Value

A list with the following elements


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