) 408-8111
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Sergey Goriatchev
> Sent: Friday, September 28, 2007 8:03 AM
> To: [EMAIL PROTECTED]
> Subject: [R] Creating nice looking lists: how?
>
> Hello,
>
> For my func
The source code for print.summary.lm and summary.lm is in the file
/src/library/stats/R/lm.R of the R source code, which you can download
from CRAN if you don't have it already. The file lm.R is also at
https://svn.r-project.org/R/trunk/src/library/stats/R/lm.R
On Fri, 28 Sep 2007, Sergey Goriatc
On Fri, 28 Sep 2007, Sergey Goriatchev wrote:
> Hello,
>
> For my functions I want to create output similar in appearance to that
> of what you get when you print a summary of lm model:
>
> Residuals:
> Min1Q Median3Q Max
> -0.209209 -0.043133 0.001793 0.04
Hi,
I don't know if it will help you but to retrieve the slope of lm(y~x), I use
:
coefficients(lm(y~x))[2]
([1] for the intercept)
I should not tell this but It took me a long time to find this obvious
thing.
Have a nice week-end,
Ptit Bleu.
---
Hello,
For my functions I want to create output similar in appearance to that
of what you get when you print a summary of lm model:
Residuals:
Min1Q Median3Q Max
-0.209209 -0.043133 0.001793 0.044105 0.234750
Coefficients:
Estimate Std
5 matches
Mail list logo