makediff2 {survivalsvm} | R Documentation |
Diffmatrix
Description
computes the matrix difference only between not censored data points (delta = 1). The data points are asssumed to be sorted by survival time and the difference is computed only if both the comparable data points are not censored.
Usage
makediff2(Y, delta)
Arguments
Y |
[ |
delta |
[ |
Value
[Diffmatrix(1)
]
Object of class Diffmatrix
with elements:
Type | type of makediff function used to compute differences between neighbours. |
Mat | matrix used to compute differences between comparable data points. |
See Also
Examples
Y <- c(1,3,3.5,4,8); delta <- c(0,0,1,1,0); makediff2(Y, delta)
[Package survivalsvm version 0.0.6 Index]