sigmaHat: Return the scale estimate for a regression model

Description Usage Arguments Details Value Author(s) Examples

View source: R/sigmaHat.R

Description

This function provides a consistent method to return the estimated scale from a linear, generalized linear, nonlinear, or other model.

Usage

1
sigmaHat(object)

Arguments

object

A regression object of type lm, glm or nls

Details

For an lm or nls object, the returned quantity is the square root of the estimate of sigma. For a glm object, the returned quantity is the square root of the estimated dispersion parameter.

Value

A nonnegative number

Author(s)

Sanford Weisberg, sandy@umn.edu

Examples

1
2
m1 <- lm(prestige ~ income + education, data=Duncan)
sigmaHat(m1)

jonathon-love/car documentation built on May 19, 2019, 7:28 p.m.