Last chance! 50% off unlimited learning
Sale ends in
boxCoxVariable(y)
y
.y
.
The constructed variable is meant to be
added to the right-hand-side of the linear model. The t-test for the
coefficient of the constructed variable is an approximate score test for whether a
transformation is required.
If $b$ is the coefficient of the constructed variable,
then an estimate of the normalizing power transformation based on the score statistic
is $1 - b$. An added-variable plot for the constructed
variable shows leverage and influence on the decision to transform y
.boxcox
, powerTransform
, bcPower
mod <- lm(interlocks + 1 ~ assets, data=Ornstein)
mod.aux <- update(mod, . ~ . + boxCoxVariable(interlocks + 1))
summary(mod.aux)
# avPlots(mod.aux, "boxCoxVariable(interlocks + 1)")
Run the code above in your browser using DataLab