Re: [R] how to improve summary.lm

2011-08-21 Thread Oliver Kullmann
> When you simply type summary.lm there is an implicit call to > print.summary.lm but its code is not visible unless you use > getAnywhere(print.summary.lm ). Aha, that's great -- now I see all the "\n" (and can get rid off them ;-)). > Reading the code you find that the > coefficient matrix and

Re: [R] how to improve summary.lm

2011-08-21 Thread David Winsemius
On Aug 21, 2011, at 3:16 AM, Oliver Kullmann wrote: Hello, I need a shorter summary.lm, instead of Call: lm(formula = E$t ~ E$cfs) Residuals: Min1QMedian3Q Max -0.239674 -0.007694 0.006430 0.014330 2.496551 Coeff

Re: [R] how to improve summary.lm

2011-08-21 Thread Jorge I Velez
Hi Oliver, For the the output you would like to have, you may take a look at names(summary(yourmodel)) str(summary(yourmodel)) The above will help you to extract the components you need from the lm object. Below is my attempt to do what you want. However, you will need to work a little more

[R] how to improve summary.lm

2011-08-21 Thread Oliver Kullmann
Hello, I need a shorter summary.lm, instead of Call: lm(formula = E$t ~ E$cfs) Residuals: Min1QMedian3Q Max -0.239674 -0.007694 0.006430 0.014330 2.496551 Coefficients: Estimate Std. Error t value Pr