[R] Different lm() Residuals Output
Rich Shepard
rshepard at appl-ecosys.com
Mon Jan 9 18:25:09 CET 2012
All but one of the summaries of multiple linear regressions in this
analysis set present the residuals by min, 1Q, median, 3Q, and max. Example:
lm(formula = TDS ~ Cond + Ca + Cl + Mg + Na + SO4, data = snow.cast)
Residuals:
Min 1Q Median 3Q Max -277.351 -32.551 -2.621
40.812 245.272
The one that doesn't has only a small number of rows (23) and presents the
results as:
lm(formula = TDS ~ Cond + Ca + Cl + Mg + SO4, data = rnchH.cast)
Residuals:
8 9 10 11 12 13 14 16 20 21
-2.1926 3.2306 -3.9823 -4.0491 0.5284 1.9354 2.4798 0.8952 -3.0642 0.8781
22
3.3408
What might cause this difference?
Rich
More information about the R-help
mailing list