Learn R Programming

survivalsvm (version 0.0.5)

makediff3: Diffmatrix

Description

The first observation is assumed to be not censored (delta = 1). The Difference is computed between data point i and its neighbour that has the largest survival time but smaller than y_i, the survival time of i.

Usage

makediff3(Y, delta)

Value

[Diffmatrix(1)] Object of class Diffmatrix with elements:

Typetype of makediff function used to compute differences between neighbours.
Matmatrix used to compute differences between comparable data points.

Arguments

Y

[vector(1)]
Ordered vector of survival times.

delta

[vector(1)]
Vector of status.

See Also

makediff1 and makediff2

Examples

Run this code
Y <- c(1,3,3.5,4,8); delta <- c(0,0,1,1,0); makediff3(Y, delta)

Run the code above in your browser using DataLab