Skip to content
Prev 181217 / 398502 Next

How can I estimate a Box-Cox function with R?

Thanks Gregory. I see that that with 
boxcox.lm() the optimal lambda is obtained and 
plotted against log-likelihood.

library(MASS)
boxcox(Volume ~ log(Height) + log(Girth), data = trees,
        lambda = seq(-0.25, 0.25, length = 10))

But has how can I see the fit of the same linear 
model with the optimal BoxCox transformation, the 
standard error for lambda etc.?

	Best. Ikerne.