getFpTransforms: Internal functions to handle FP transforms.

getFpTransformsR Documentation

Internal functions to handle FP transforms.

Description

Transform a variable according to FP transformation formula and attach proper names to the resulting design matrix. The binary function bt is the Box-Tidwell transform.

Usage

'%bt%'(x, pow)
getFpTransforms(vec, powers, center=TRUE)
getTransformName(name, pow)

Arguments

x

numeric vector

pow

one single power (not vectorized in this argument)

vec

positive (== already shifted and scaled) column vector (!) with proper colname

powers

power vector with at least one element

center

should the columns be centered around zero? (default)

name

name of the covariate to be transformed with bt

Author(s)

Daniel Saban\'es Bov\'e

See Also

getDesignMatrix

Examples

bfp:::getFpTransforms(cbind(x=1:10), powers=c(-2, 0, 1))

bfp documentation built on Nov. 1, 2022, 1:05 a.m.

Related to getFpTransforms in bfp...