View source: R/survDabrowska.R
survDabrowska | R Documentation |
The function computes marginal and joint survival probabilities for right-censored data using Dabrowska's (1988) method.
survDabrowska(X, Y, deltaX, deltaY)
X |
Time to event or censoring for variable |
Y |
Time to event or censoring for variable |
deltaX |
Event indicator for variable |
deltaY |
Event indicator for variable |
The function returns a list with two values: Dabrowska's estimator of the marginal and joint survival probabilities, DabrowskaEst
, and its corresponding marginal and joint cumulative distribution functions (CDFs), DabrowskaCDF
, based on the bivariate survival data provided by the user.
A list of two elements: DabrowskaEst
and DabrowskaCDF
. DabrowskaEst
is a matrix containing marginal and joint survival probabilities. The first column is the marginal survival probability corresponding to variable X
. The first row is the marginal survival probability corresponding to variable Y
. The rest of the matrix contains the joint survival probabilities. The row names of DabrowskaEst
are ordered X
-values. The column names of DabrowskaEst
are ordered Y
-values. Element DabrowskaEst[1,1]
equals 1. Its row and column name is '0'
. DabrowskaCDF
is a matrix containing marginal and joint cumulative distribution functions (CDFs). The first row of DabrowskaCDF
is the marginal CDF corresponding to variable X
. The first column of DabrowskaCDF
is the marginal CDF corresponding to variable Y
. The row and column names of DabrowskaCDF
are the same as for DabrowskaEst
.
Svetlana K Eden, svetlanaeden@gmail.com
Dabrowska, D. M. (1988). Kaplan–Meier estimate on the plane. The Annals of Statistics 16, 1475–1489.
X = c(0.5, 0.6, 0.6, 0.8) Y = c(0.44, 0.77, 0.88, 0.99) deltaX = c(1, 0, 1, 1) deltaY = c(1, 1, 1, 1) survDabrowska(X, Y, deltaX, deltaY)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.