coxphw (version 4.0.1)

PT: Pretransformation function

Description

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

Usage

PT(z)

Arguments

z

a vector of numerical values.

Value

(z + shift) / scale

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
# NOT RUN {
PT(z = c(-6, -1, 4, 6))
# }

Run the code above in your browser using DataCamp Workspace