robustbase (version 0.93-5)

sigma: Extract 'Sigma' - Standard Deviation of Errors for Robust Models

Description

Extract the estimated standard deviation of the errors, the “residual standard deviation” (misnomed also “residual standard error”) from a fitted model.

Usage


# S3 method for lmrob
sigma(object, …)

Arguments

object

a fitted model.

additional, optional arguments. (None are used in our methods)

Value

the residual standard error as a scalar

Details

For R <= 3.2.x, we provide an (S3) generic function (as e.g., package lme4) and methods for lmrob, nlrob, and nls.

From R >= 3.3.0, we provide methods for our lmrob and nlrob models.

Examples

Run this code
# NOT RUN {
      m.cl <-   lm (Y ~ ., data=coleman)
if(getRversion() >= "3.3.0")  sigma(m.cl)  else  summary(m.cl)$sigma
sigma( m1  <- lmrob(Y ~ ., data=coleman) )
sigma( m2  <- lmrob(Y ~ ., data=coleman, setting = "KS2014") )
# }

Run the code above in your browser using DataCamp Workspace