[R] Different lm() Residuals Output

2012-01-09 Thread Rich Shepard
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

Re: [R] Different lm() Residuals Output

2012-01-09 Thread Bert Gunter
It's the print method that determines this. See stats:::print.summary.lm and in particular the if clause beginning: if (rdf 5L) { R code is open source. Once you know what to look for, you can examine it yourself. -- Bert On Mon, Jan 9, 2012 at 9:25 AM, Rich Shepard

Re: [R] Different lm() Residuals Output

2012-01-09 Thread Rich Shepard
On Mon, 9 Jan 2012, Bert Gunter wrote: It's the print method that determines this. Bert, Oh. I wrap the lm() function in summary() so I didn't expect to see differences in output. See stats:::print.summary.lm and in particular the if clause beginning: if (rdf 5L) { OK. I'll read