bc_inv: Box-Cox transform inverse

Description Usage Arguments Value Examples

View source: R/box_cox.R

Description

Find the original value corresponding to a box-cox transform

Usage

1
bc_inv(z, alpha, eps = 1e-05)

Arguments

z

numeric, the transformed value

alpha

numeric, the power of the box-cox transform

eps

numeric, a guard around alpha = 0

Value

A vector of original quantities

Examples

1
2
3
invy <- with(Cars93, bc(MPG.city, alpha = -1))
mpgc <- bc_inv(invy, alpha = -1)
range(mpgc - Cars93$MPG.city)

BillVenables/WWRUtilities documentation built on Jan. 26, 2021, 10:18 p.m.