s-news
[Top] [All Lists]

Re: [Q]: R^2 in lm

To: "Tang, Roy Haicheng (Corp Credit - NY)" <RoyHaicheng_Tang@ml.com>
Subject: Re: [Q]: R^2 in lm
From: Chuck Cleland <ccleland@optonline.net>
Date: Fri, 10 Jun 2005 10:36:24 -0400
Cc: s <s-news@lists.biostat.wustl.edu>
In-reply-to: <17EA796340230948802BA1BC6D88085C05C343C8@mlnyb701mb.amrs.win.ml.com>
References: <17EA796340230948802BA1BC6D88085C05C343C8@mlnyb701mb.amrs.win.ml.com>
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
> x <- rnorm(10)
> y <- rnorm(10)
> summary(lm(y ~ x))
> summary(lm(y ~ x))$r.squared
[1] 0.03490228

Tang, Roy Haicheng (Corp Credit - NY) wrote:
Hi all,

I have a very simple question on linear regression: does Splus function
lm provide R^2? I checked help but could not find it. Of course one can
always get it by using the residual to calculate ESS and using original
Y to get TSS, but it just feels strange to me that Splus does not
provide such a basic statistic.

Thanks for any help!

-Haicheng
--------------------------------------------------------

If you are not an intended recipient of this e-mail, please notify the sender, 
delete it and do not read, act upon, print, disclose, copy, retain or 
redistribute it. Click here for important additional terms relating to this 
e-mail.     http://www.ml.com/email_terms/
--------------------------------------------------------
--------------------------------------------------------------------
This message was distributed by s-news@lists.biostat.wustl.edu.  To
unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
the BODY of the message:  unsubscribe s-news


--
Chuck Cleland, Ph.D.
NDRI, Inc.
71 West 23rd Street, 8th floor
New York, NY 10010
tel: (212) 845-4495 (Tu, Th)
tel: (732) 452-1424 (M, W, F)
fax: (917) 438-0894

<Prev in Thread] Current Thread [Next in Thread>
  • [Q]: R^2 in lm, Tang, Roy Haicheng (Corp Credit - NY)
    • Re: [Q]: R^2 in lm, Chuck Cleland <=