lm model, draws an inverse.response plot with the response $Y$ on the
vertical axis and the fitted values $\hat{Y}$
on the horizontal axis. Uses nls to
estimate $\lambda$ in the function
$\hat{Y}=b_0+b_1Y^{\lambda}$.
Adds the fitted curve to the plot.
invResPlot is an alias for inverseResponsePlot.inverseResponsePlot(model, lambda=c(-1,0,1), xlab=NULL, ...)
## S3 method for class 'lm':
inverseResponsePlot(model, lambda=c(-1,0,1), 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.invTranPlot, powerTransform,
showLabelsm2 <- lm(rate ~ log(len) + log(ADT) + slim + shld + log(sigs1), Highway1)
invResPlot(m2)Run the code above in your browser using DataLab