[R] How to read ANOVA output

Stephen Liu satimis at yahoo.com
Thu Aug 19 11:57:36 CEST 2010


----- Original Message ----

From: Gavin Simpson <gavin.simpson at ucl.ac.uk>
To: Stephen Liu <satimis at yahoo.com>
Cc: r-help at r-project.org
Sent: Wed, August 18, 2010 4:13:03 PM
Subject: Re: [R] How to read ANOVA output

Hi Gavin,


Thanks for your advice.


> > tabA = c(5.67, 5.67, 5.55, 5.57)
> > tabB = c(5.75, 5.47, 5.43, 5.45)
> > tabC = c(4.74, 4.45, 4.65, 4.94)
> > tabs = data.frame(tabA, tabB, tabC)
> 
> > tablets = stack(tabs)
> 
> 
> > anova(lm(values ~ ind, data = tablets))
>> Analysis of Variance Table
>> Response: values
>>       Df  Sum Sq   Mean Sq  F value  Pr(>F)
>> ind      2   2.05787  1.02893  45.239   2.015e-05 ***
>> Residuals 9   0.20470  0.02274
>> ---
> >Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1


>That output is designed to look like ANOVA tables from classical text
>books, so any introductory textbook designed for your particular
>background or area of knowledge would probably help you understand it.

- snip -

Could you pls shed me some hints where can I find the relevant online document 
for my use?  Google search brought me tons of output.  To go through all it 
would take lengthy time.  Also it may lead me to the wrong direction.

TIA


B.R.
Stephen





More information about the R-help mailing list