On 2010-11-26 03:05, peter_petersen wrote:
Hello!
I am trying to extract a p-value from an aov-object. I´ve done some research
on the internet and found a number of solutions, but somehow, none seems to
work for me.
This is the Object:
summary(rt.aov)
Error: pbn
Df Sum Sq Mean Sq F value Pr(>F)
Residuals 9 378283 42031
Error: pbn:expCond
Df Sum Sq Mean Sq F value Pr(>F)
expCond 2 7312 3656.0 0.4663 0.6347
Residuals 18 141122 7840.1
I would like to recieve an object, that only includes "0.6347".
Any Advice?
Try
summary(rt.aov)[[2]][[1]][1,5]
or
summary(rt.aov)[[2]][[1]][1,"Pr(>F)"]
Peter Ehlers
______________________________________________
R-help@r-project.org 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.