[R] Inverse BoxCox transformation

John Fox jfox at mcmaster.ca
Mon Jun 18 14:48:55 CEST 2007


Dear Des,

The following should do the trick:

	invBoxCox <- function(x, lambda)
    		if (lambda == 0) exp(x) else (lambda*x + 1)^(1/lambda)

I hope this helps,
 John

--------------------------------
John Fox, Professor
Department of Sociology
McMaster University
Hamilton, Ontario
Canada L8S 4M4
905-525-9140x23604
http://socserv.mcmaster.ca/jfox 
-------------------------------- 

> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch 
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Des Callaghan
> Sent: Monday, June 18, 2007 3:33 AM
> To: r-help at stat.math.ethz.ch
> Subject: [R] Inverse BoxCox transformation
> 
> Hi,
>  
> I can't seem to find a function in R that will reverse a 
> BoxCox transformation. Can somebody help me locate one 
> please? Thanks in advance.
>  
> Best wishes,
> Des
>  
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list