Transform the response

DESCRIPTION:

Transforms the response as required by the FORTRAN routines.

USAGE:

censorReg.make.Y(Y, Terms, threshold, weights = rep(1, nrow(Y)), link) 

REQUIRED ARGUMENTS:

Y
matrix of censoring or failure times.
Terms
the "Terms" in the model.
threshold
threshold parameter. If not specified, this is computed as 90 percent of the smallest failure time.
weights
a vector of observation weights.
link
transformation to be used on the y variable. Two links are allowed: "log" implies that log(y) is used, while "identity" means that y is not transformed.

VALUE:

A list containing the transformed Y, censoring codes, censoring intervals, and threshold estimate.

DETAILS:

This function computes threshold and subtracts it from Y. An error results if link = "log" and any Y are less than zero.

SEE ALSO:

EXAMPLES:

This function is not normally called directly by the user.