CensorType: Determine types of censoring based on censoring intervals

Description Usage Arguments Value Author(s) Examples

View source: R/CensorType.R

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)

glrt documentation built on May 2, 2019, 8:31 a.m.