R/sigmaHat.R

Defines functions sigmaHat.glm sigmaHat.lm sigmaHat.default sigmaHat

Documented in sigmaHat sigmaHat.default sigmaHat.glm sigmaHat.lm

#-------------------------------------------------------------------------------
# Revision history:
# 2010-07-01: moved from alr3 and renamed.  S. Weisberg
## method to return sigmaHat

sigmaHat <- function(object){UseMethod("sigmaHat")}
sigmaHat.default <- function(object){summary(object)$sigma}
sigmaHat.lm <- function(object) sigmaHat.default(object)
sigmaHat.glm <- function(object){sqrt(summary(object)$dispersion)}

Try the car package in your browser

Any scripts or data that you put into this service are public.

car documentation built on Sept. 27, 2024, 9:06 a.m.