makediff1 function

Diffmatrix

Diffmatrix

The data points are asssumed to be sorted by survival time. The comparison only takes place between two consecutivee observations when the first one is not censored (delta = 1).

makediff1(Y, delta)

Arguments

  • Y: [vector(1)]

    Ordered vector of survival times.

  • delta: [vector(1)]

    Vector of status

Returns

[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.

Examples

Y <- c(1,3,3.5,4,8); delta <- c(0,0,1,1,0); makediff1(Y, delta)

See Also

makediff2 and makediff3

  • Maintainer: Cesaire J. K. Fouodo
  • License: GPL
  • Last published: 2025-04-04