getFpTransforms {bfp} | R 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
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 |
Author(s)
Daniel Saban\'es Bov\'e
See Also
Examples
bfp:::getFpTransforms(cbind(x=1:10), powers=c(-2, 0, 1))
[Package bfp version 0.0-49 Index]