Learn R Programming

bfp (version 0.0-48)

getFpTransforms: 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

x %bt% 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

Daniel Saban\'es Bov\'e

See Also

getDesignMatrix

Examples

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

Run the code above in your browser using DataLab