R/boxcox.R

Defines functions boxcox

Documented in boxcox

## Box-Cox
boxcox <- function(x,lambda) {
  if(lambda==1) {
    return(x)
  } else if(lambda==0) {
    return (log(x))
  } else {
    return((x^lambda-1)/lambda)
  }
}
jobonaf/pesco documentation built on May 19, 2019, 2:58 p.m.