sigma.RdExtract the estimated standard deviation of the errors, the “residual standard deviation” (misnomed also “residual standard error”) from a fitted model.
<!-- % Declare S3 method as the generic is no longer in lme4 for R (>= 2015-06-01): -->
# S3 method for class 'lmrob'
sigma(object, ...)the residual standard error as a scalar
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.
m.cl <- lm (Y ~ ., data=coleman)
if(getRversion() >= "3.3.0") sigma(m.cl) else summary(m.cl)$sigma
#> [1] 2.074296
sigma( m1 <- lmrob(Y ~ ., data=coleman) )
#> [1] 1.133835
sigma( m2 <- lmrob(Y ~ ., data=coleman, setting = "KS2014") )
#> [1] 0.9745701