PT: Pretransformation function

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/fpfunctions.r

Description

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

Usage

1
 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

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

coxphw documentation built on July 8, 2020, 6:52 p.m.