PT: Pretransformation function

View source: R/fpfunctions.r

PTR Documentation

Pretransformation function

Description

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

Usage

 PT(z) 

Arguments

z

a vector of numerical values.

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.

Value

(z + shift) / scale

Author(s)

Georg Heinze

See Also

coxphw

Examples

PT(z = c(-6, -1, 4, 6))

coxphw documentation built on May 29, 2024, 3:18 a.m.