Skip to content
Prev 22316 / 398502 Next

A question from a newbee...

On 2 Aug 2002 at 9:46, jlamoral wrote:

            
do you have an object with name "aov" in your directory???
Check with ls()
I recommend to remove it as it is not recommended to give 
objects built in function names.
My results
Df Sum Sq Mean Sq F value  Pr(>F)  
i            1 0.3025  0.3025    24.2 0.03893 *
Residuals    2 0.0250  0.0125                  
---
Signif. codes:  0 `***' 0.001 `**' 0.01 `*' 0.05 `.' 0.1 ` ' 1
anova() gives you the result which is maybe more suitable for 
subsetting then summary

try

unlist(anova(anov)[5])[1]
Pr(>F).1 
0.03892554 

it works just with your example, for more dimensions go through 
manual pages and some trial and error.
Hope this helps.

Petr Pikal
petr.pikal at precheza.cz
p.pik at volny.cz


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._