fpTrans: Transform formula variables

Description Usage Arguments Value

View source: R/fpTrans.R

Description

Simple function to apply the Box Tidwell transformation to a variables in a formula. Variable is first shifted and scaled NewVar = (Var+shift)/scale then transformed and optionally centered. Can be used in formulas as poly() is.

Usage

1
fpTrans(var, powers = 1, scale = 1, shift = 0, center = TRUE)

Arguments

var

the variable to transform

powers

one or more powers

scale

value to scale the variable after shifting (default=1)

shift

value to shift the variable by (default=0)

center

center the variable when tranforming.

Value

the transformed vector


glmBfp documentation built on Aug. 3, 2017, 5:04 p.m.