Determine types of censoring based on censoring intervals

Description

This function determines types of censoring based on censoring intervals. It is called by function gLRT1, gLRT2, gLRT3, and gLRT4.

Usage

1

Arguments

A

a matrix containing the end points of censoring intervals in the first two columns

inf

value representing infinity

Value

cens

a vector of censoring types with value 1 for left-censoring, 2 for interval-censoring, 3 for right-censoring, and 4 for exact observation

Author(s)

Qiang Zhao and Jianguo Sun

Examples

1
2
A = matrix(c(1, 3, 0, 4, 3, 100, 3, 3), ncol=2, byrow=TRUE)
CensorType(A, 100)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.