boxcoxFun {qAnalyst} | R Documentation |
boxcoxFun
performs box cox transformation, finding optimal lambda for the given data vector. boxcoxFun
returns a transformation class object.
boxcoxFun(x)
x |
numeric data vector |
boxcoxFun
calls internally powerTransform
and bcPower1
functions from package car to build output transformation object.
A transformation class object is returned. A transformation class objects consists in a list composed by the following items:
type |
type of transformation, in such case: "boxcox" |
parameters |
parameter lambda is stored in this item |
original |
original data vector |
parameters |
trasformed data vector |
Box cox transformations requires data to be positive. X vector positivity is internally checked before performing transformation.
Giorgio Spedicato, Nicola Sturaro Sommacal
Venables, Ripley Modern Applied Statistics with S-PLUS
print.transformation
, plot.transformation
, johnsonFun
#warpTiles example data(warpTiles) boxInfo=boxcoxFun(x=warpTiles$warping) print(boxInfo)