getFpTransforms | R Documentation |
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.
x %bt% pow
getFpTransforms(vec, powers, center=TRUE)
getTransformName(name, pow)
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 |
Daniel Saban\'es Bov\'e
getDesignMatrix
bfp:::getFpTransforms(cbind(x=1:10), powers=c(-2, 0, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.