there is a component residuals in output of lm
object, so you get residual sum of squares by sum(output$residuals^2)
.
edit: You are actually taking sigma out of summaries, which is
sqrt(sum(output$residuals^2)/output$df.residuals)
For all models use
sapply(allModels, function(a) sqrt(sum(a$residuals^2)/a$df.residuals)))