s-news
[Top] [All Lists]

Re: extracting r squared from lm

To: "Dakin, Jonathan" <j.dakin@imperial.ac.uk>
Subject: Re: extracting r squared from lm
From: Sundar Dorai-Raj <sundar.dorai-raj@pdf.com>
Date: Fri, 11 Apr 2003 10:01:53 -0500
Cc: "'s-news@lists.biostat.wustl.edu'" <s-news@lists.biostat.wustl.edu>
Organization: PDF Solutions, Inc.
References: <9A760AEE164ED71190D00002A542BB6301866033@icex2.cc.ic.ac.uk>
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01
Try

summary(lm.obj)$r.squared

Sundar

Dakin, Jonathan wrote:
Is there an easy way of extracting the multiple r squared term from the
output of lm ?
Coefficients(object), residuals(object) and fitted.values(object) provide
shortcuts to pulling out everything else.  The r squared term doesn't seem
to appear in the lm.object.  One can calculate it, but it seems a long way
round.

Many thanks.

Jonathan Dakin
Imperial College

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




<Prev in Thread] Current Thread [Next in Thread>