Learn R Programming

ALSM (version 0.1.9)

boxcox.sse: Box-Cox Transformations (SSE)

Description

transformation from the family of power transformations on Y. box-cox transformation according to SSE.

also plot SSE against lambda

Usage

boxcox.sse(x,y,l=seq(-2,2,.1))

Arguments

x
vector predictor variable

y
vector response variable

l
vector, Different values of lambda

References

Michael H. Kutner; Christopher J. Nachtsheim; John Neter; William Li. Applied Linear Statistical Models Fifth Edition.page 134

Examples

Run this code
### table 3.9 & figure 3.17 (page 136)
boxcox.sse(Plasma[,1],Plasma[,2])

### table 18.6 page 792
boxcox.sse(factor(ServoData[,2]),ServoData[,1])

Run the code above in your browser using DataLab