
Last chance! 50% off unlimited learning
Sale ends in
lm
model, draws an inverse.response plot with the response $Y$ on the
vertical axis and the fitted values $Yhat$
on the horizontal axis. Uses nls
to
estimate $lambda$ in the function
$Yhat = b0 + b1(Y)^(lambda)$.
Adds the fitted curve to the plot.
invResPlot
is an alias for inverseResponsePlot
.
inverseResponsePlot(model, lambda=c(-1,0,1), robust=FALSE, xlab=NULL, ...)
"inverseResponsePlot"(model, lambda=c(-1,0,1), robust=FALSE, xlab=NULL, labels=names(residuals(model)), ...)
invResPlot(model, ...)
lm
regression objectNULL
, it is constructed by the function.invTranPlot
and showLabels
for arguments.invTranPlot
and then to
plot
.Weisberg, S. (2014) Applied Linear Regression, Fourth Edition, Wiley, Chapter 7.
invTranPlot
, powerTransform
,
showLabels
m2 <- lm(rate ~ log(len) + log(ADT) + slim + shld + log(sigs1), Highway1)
invResPlot(m2)
Run the code above in your browser using DataLab