Return the scale estimate for a regression model
sigmaHat.RdThis function provides a consistent method to return the estimated scale from a linear, generalized linear, nonlinear, or other model.
Details
For an lm or nls object, the returned quantity is the square root of the estimate of \(\sigma^2\). For a glm object, the returned quantity is the square root of the estimated dispersion parameter.
Author
Sanford Weisberg, sandy@umn.edu
Examples
m1 <- lm(prestige ~ income + education, data=Duncan)
sigmaHat(m1)
#> [1] 13.36903