I have writen code for a Box-Cox transformation (see below). But now I want to do a Yeo-Johnson transformation because datc$plot contains zeros. I tried, but I didn't find a solution.
lambda.fm1 <- boxcox(datc$plot ~ datc$cond.evlot*datc$cond.dl*datc$version),
family="yjPower")
lambda.max <- lambda.fm1$x[which.max(lambda.fm1$y)]
require(car)
datc$plott <- bcPower(datc$plot, lambda = lambda.max, jacobian.adjusted = FALSE)
carpackage with the functionyjPower. So just useyjPower(datc$plot, lambda=lambda.max, jacobian.adjusted=FALSE). I think that should work. – COOLSerdash May 28 '13 at 09:12boxCoxfrom thecarpackage and use it with the optionfamily="yjPower". – COOLSerdash May 28 '13 at 09:26yeo.johnsonfunction in the packageVGAMas well. It is on CRAN. – Glen_b May 28 '13 at 12:07