Learn R Programming

bcmixed (version 0.1.5)

bct.v: 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))

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.

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).

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, tools:::Rd_expr_doi("10.1111/j.2517-6161.1964.tb00553.x").

Examples

Run this code
  y <- exp(rnorm(50))
  bct.v(y)

Run the code above in your browser using DataLab