coxphw (version 4.0.3)

PT: Pretransformation function

Description

Provides automatic pretransformation of variables (to well-scaled and nonzero values).

Usage

PT(z)

Value

(z + shift) / scale

Arguments

z

a vector of numerical values.

Author

Georg Heinze

Details

The function transforms a variable by shifting to positive values, and dividing by scaling factor (a power of 10) such that the standard deviation is approximately equal to 1.

See Also

coxphw

Examples

Run this code
PT(z = c(-6, -1, 4, 6))

Run the code above in your browser using DataLab