> 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
|