sigma
Extract Residual Standard Deviation

Description

Returns the standard deviation of the residuals of the model.

Usage

sigma(object, ...)
## Default S3 method:
sigma(object, use.fallback = TRUE, ...)

Arguments

object a fitted model object.
use.fallback a logical argument passed to function nobs.default to get the number of observations from a fit. See nobs for its detail.
... additional arguments to be passed to future methods of this generic function.

Details

sigma is an S3 generic function to compute the estimated standard deviation of the residuals of the model. Currently, the default method handles linear and generalized linear models.
Value
Returns the estimated standard deviation of the residuals of the model.
See Also
nobs, deviance
Examples
fit <- lm(y ~ ., data=Sdatasets::freeny)
sigma(fit)
sigma( lm(Fuel ~ Weight -1, data=Sdatasets::fuel.frame), use.fallback = FALSE )
Package stats version 6.1.4-13
Package Index