[R] Multiple ANOVA tests

Imri bisrael at agri.huji.ac.il
Wed May 27 12:11:08 CEST 2009


Hi all -
I'm trying to do multiple one-way ANOVA tests of different factors on the
same variable. As a result I have a list with all the ANOVA tables, for
exemple:

$X11_20502
Analysis of Variance Table

Response: MPH
           Df  Sum Sq Mean Sq F value    Pr(>F)    
x           3   369.9   123.3   6.475 0.0002547 ***
Residuals 635 12093.2    19.0                      
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 

$X11_21067
Analysis of Variance Table

Response: MPH
           Df  Sum Sq Mean Sq F value Pr(>F)
x           1    26.7    26.7  1.3662 0.2429
Residuals 637 12436.4    19.5               

$X11_10419
Analysis of Variance Table

Response: MPH
           Df  Sum Sq Mean Sq F value    Pr(>F)    
x           3   527.8   175.9   9.361 4.621e-06 ***
Residuals 635 11935.3    18.8                      
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 

My question is how can I extract from this list, just the Pr(>F) values for
each x ?      
-- 
View this message in context: http://www.nabble.com/Multiple-ANOVA-tests-tp23739615p23739615.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list