50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


car (version 3.1-1)

sigmaHat: Return the scale estimate for a regression model

Description

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

Usage

sigmaHat(object)

Value

A nonnegative number

Arguments

object

A regression object of type lm, glm or nls

Author

Sanford Weisberg, sandy@umn.edu

Details

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

Examples

Run this code
m1 <- lm(prestige ~ income + education, data=Duncan)
sigmaHat(m1)

Run the code above in your browser using DataLab