Check truncation values

DESCRIPTION:

Checks that the truncation codes and values are appropriate for the specified failure times or intervals.

USAGE:

censorReg.check.code(codes, Y, YT.codes, YT.Y) 

REQUIRED ARGUMENTS:

codes
vector of observation censoring codes
Y
matrix of observation failure or censoring intervals.
YT.codes
vector of observation truncation codes.
YT.Y
matrix of observation truncation intervals.

VALUE:

Does not return any values.

SIDE EFFECTS::

Stops if the truncation codes are not specified correctly.

DETAILS:

Censored or failed observations must satisfy the restrictions imposed by the truncation interval, if any. This function checks that these restrictions are satisfied. The conditions under which this function halts the modeling process are as follows: right truncation point is less than the failure time right truncation point is less than the right censoring time right truncation point is less than the left censoring time right truncation point is less than the right endpoint of the failure interval left truncation point is greater than the failure time left truncation point is greater than the left censoring time left truncation point is greater than the right censoring time left truncation point is greater than the left endpoint of the failure interval truncation interval does not include the failure time truncation interval does not include the failure interval

EXAMPLES:

This is an internal routine that is not normally called directly.