🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.stats.s
Article #196

Difference between summary.lm() and summary.aov()

#196
From: Alex T.
Date: Sat, 06 Dec 2003 16:06
28 lines
1916 bytes
I have a simple linear model (fitted with lm()) with 2 independant
variables : one categorical and one integer.

When I run summary.lm() on this model, I get a standard linear
regression summary (in which one categorical variable has to be
converted into many indicator variables) which looks like :

            Estimate Std. Error t value Pr(>|t|)
(Intercept)  -3595.3     2767.1  -1.299   0.2005
physicianB     802.0     2289.5   0.350   0.7277
physicianC    4906.8     2419.8   2.028   0.0485 *
severity      7554.4      906.3   8.336 1.12e-10 ***

and when I run summary.aov() I get similar ANOVA table : 

           Df     Sum Sq    Mean Sq F value    Pr(>F)
physician    2  294559803  147279901  3.3557   0.04381 *
severity     1 3049694210 3049694210 69.4864 1.124e-10 ***
Residuals   45 1975007569   43889057

What is absolutely unclear to me is how F-value and Pr(>F) for the
categorical "physician" variable of the summary.aov() is calculated
from the t-value of the summary.lm() table.

I looked at the summary.aov() source code but still could not figure
it.

Thanks a lot.
Technical Details
Message-ID: <25184c1e.0312060806.5eb25513@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fa931,87900ea57430b64d,start
X-Google-Attributes: gidfa931,public
X-Google-ArrivalTime: 2003-12-06 08:06:51 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: alex_s_42@yahoo.com (Alex T.)
Newsgroups: aus.stats.s
Subject: Difference between summary.lm() and summary.aov()
Date: 6 Dec 2003 08:06:50 -0800
Organization: http://groups.google.com
Lines: 28
Message-ID: <25184c1e.0312060806.5eb25513@posting.google.com>
NNTP-Posting-Host: 212.150.248.81
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1070726810 28265 127.0.0.1 (6 Dec 2003 16:06:50 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sat, 6 Dec 2003 16:06:50 +0000 (UTC)