bct.v: Applying the Box-Cox Transformation to a numeric vector.

Description Usage Arguments Value References Examples

View source: R/bct.v.R

Description

bct.v returns the Box-Cox transformed numeric vector (Box and Cox, 1964).

Usage

1
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

1
2
  y <- exp(rnorm(50))
  bct.v(y)

bcmixed documentation built on March 31, 2020, 5:22 p.m.