bct.v {bcmixed} | R Documentation |
Applying the Box-Cox Transformation to a numeric vector.
Description
bct.v
returns the Box-Cox transformed numeric vector (Box and Cox,
1964).
Usage
bct.v(y, lmdint = c(-3, 3))
Arguments
y |
a positive real number vector. |
lmdint |
a vector containing the end-points of the interval to be searched for a transformation parameter. Default is c(-3, 3). |
Value
bct.v
returns the Box-Cox transformed numeric vector and
estimated transformation parameter.
transformed
The Box-Cox transformed numeric vector.
lambda
a numeric value of the estimate of the transformation parameter.
References
Box, G.E.P. and Cox, D.R. (1964). An analysis of transformations (with discussion). Journals of the Royal Statistical Society, Series B, 26, 211-246, https://doi.org/10.1111/j.2517-6161.1964.tb00553.x.
Examples
y <- exp(rnorm(50))
bct.v(y)
[Package bcmixed version 0.1.4 Index]