[R] extract from anova

joris.dewolf at cropdesign.com joris.dewolf at cropdesign.com
Mon Jul 16 15:56:31 CEST 2007



Mustapha,

You should tell us what fm1 actually is (which class), before we can give
you a correct answer.
It is helpfull to use str() in this case.

str(fm1) will give you the structure of fm1, and with that information you
extract any value you want.

I suppose that this is what you need:

summary(fm1)[[1]]["Residuals","Mean Sq"]








                                                                           
             elyakhlifi                                                    
             mustapha                                                      
             <elyakhlifi_musta                                          To 
             pha at yahoo.fr>             R-help at stat.math.ethz.ch            
             Sent by:                                                   cc 
             r-help-bounces at st                                             
             at.math.ethz.ch                                       Subject 
                                       [R] extract from anova              
                                                                           
             16/07/2007 15:01                                              
                                                                           
                                                                           
                                                                           
                                                                           




Hello,
I would like extract the Mean Sq of the Residuals how should I do  please?
thanks.


> summary(fm1)
            Df  Sum Sq Mean Sq F value    Pr(>F)
groupe      20 300.987  15.049  22.853 3.369e-16 ***
Residuals   41  27.000   0.659
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1



_____________________________________________________________________________


             [[alternative HTML version deleted]]

______________________________________________
R-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list