Description Usage Arguments Details Value Author(s) See Also Examples
Computes the Box-Cox transform of the data for a given value of lambda. Includes the scaling factor.
1 | bct(y, lambda)
|
y |
Vector of data to be transformed. |
lambda |
Scalar exponent for transform (1 is linear, 0 is log). |
bct
computes the Box-Cox family of transforms: y = (y\^lambda -
1)/(lambda*gm\^(lambda-1)), where gm is the geometric mean of the y's.
returns log(y)*gm when lambda equals 0.
A vector of the same length as y with the corresponding transformed values.
Greg Snow 538280@gmail.com
vis.boxcox
, vis.boxcoxu
,
boxcox
in package MASS, other implementations in various
packages
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.